Class TimeSeriesProcessor<T extends TimeSeries<E,V>,E extends TimeSeriesEntry<V>,V extends Value>
java.lang.Object
edu.ie3.datamodel.io.processor.Processor<T>
edu.ie3.datamodel.io.processor.EntityProcessor<TimeSeries>
edu.ie3.datamodel.io.processor.timeseries.TimeSeriesProcessor<T,E,V>
public class TimeSeriesProcessor<T extends TimeSeries<E,V>,E extends TimeSeriesEntry<V>,V extends Value>
extends EntityProcessor<TimeSeries>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final List<TimeSeriesProcessorKey>
List of all combinations of time series class, entry class and value class, this processor is able to handleFields inherited from class edu.ie3.datamodel.io.processor.EntityProcessor
headerElements, log
Fields inherited from class edu.ie3.datamodel.io.processor.Processor
logger, registeredClass
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<Class<? extends TimeSeries>>
Returns a (unmodifiable)List
of classes that this Processors is capable of processingString[]
Return all header elements of the tablehandleEntity
(TimeSeries entity) Standard call to handle an entityhandleTimeSeries
(T timeSeries) Handles the time series by processing each entry and collecting the resultsMethods inherited from class edu.ie3.datamodel.io.processor.EntityProcessor
handleProcessorSpecificQuantity
Methods inherited from class edu.ie3.datamodel.io.processor.Processor
getRegisteredClass, handleQuantity, mapFieldNameToGetter, mapFieldNameToGetter, processMethodResult, processObject, processOperationTime, processUUIDArray, processVoltageLevel, processZonedDateTime, putUuidFirst, quantityValToOptionalString
-
Field Details
-
eligibleKeys
List of all combinations of time series class, entry class and value class, this processor is able to handle
-
-
Constructor Details
-
TimeSeriesProcessor
-
-
Method Details
-
handleEntity
Description copied from class:EntityProcessor
Standard call to handle an entity- Overrides:
handleEntity
in classEntityProcessor<TimeSeries>
- Parameters:
entity
- the entity that should be 'serialized' into a map of fieldName to fieldValue- Returns:
- an optional Map with fieldName to fieldValue or an empty optional if an error occurred during processing
-
handleTimeSeries
Handles the time series by processing each entry and collecting the results- Parameters:
timeSeries
- Time series to handle- Returns:
- A set of mappings from field name to value
-
getHeaderElements
Description copied from class:Processor
Return all header elements of the table- Overrides:
getHeaderElements
in classEntityProcessor<TimeSeries>
- Returns:
- all header elements of the table
-
getEligibleEntityClasses
Description copied from class:Processor
Returns a (unmodifiable)List
of classes that this Processors is capable of processing- Specified by:
getEligibleEntityClasses
in classProcessor<TimeSeries>
- Returns:
- The unmodifiable
List
of eligible classes
-