Search in sources :

Example 1 with FormatterFactory

use of org.n52.io.type.count.format.FormatterFactory in project series-rest-api by 52North.

the class CountIoProcessChain method formatValueOutputs.

private DataCollection<?> formatValueOutputs() {
    FormatterFactory factory = FormatterFactory.createFormatterFactory(parameters);
    DataCollection<Data<CountValue>> data = getData();
    return factory.create().format(data);
}
Also used : FormatterFactory(org.n52.io.type.count.format.FormatterFactory) ResultTimeClassifiedData(org.n52.io.format.ResultTimeClassifiedData) Data(org.n52.io.response.dataset.Data)

Example 2 with FormatterFactory

use of org.n52.io.type.count.format.FormatterFactory in project series-rest-api by 52North.

the class QuantityIoProcessChain method formatValueOutputs.

private DataCollection<?> formatValueOutputs() {
    FormatterFactory factory = FormatterFactory.createFormatterFactory(parameters);
    DataCollection<Data<QuantityValue>> data = getData();
    return factory.create().format(data);
}
Also used : FormatterFactory(org.n52.io.type.quantity.format.FormatterFactory) ResultTimeClassifiedData(org.n52.io.format.ResultTimeClassifiedData) Data(org.n52.io.response.dataset.Data)

Aggregations

ResultTimeClassifiedData (org.n52.io.format.ResultTimeClassifiedData)2 Data (org.n52.io.response.dataset.Data)2 FormatterFactory (org.n52.io.type.count.format.FormatterFactory)1 FormatterFactory (org.n52.io.type.quantity.format.FormatterFactory)1