public abstract class AbstractAggregationIterator extends InputProcessingIterator
Modifier and Type | Field and Description |
---|---|
static int |
QUALITY_COUNTER_POS_INTERPOLATED |
static int |
QUALITY_COUNTER_POS_VALUES |
static int |
QUALITY_COUNTERS |
input_iterator
schema
Constructor and Description |
---|
AbstractAggregationIterator(TsDB tsdb,
TsIterator input_iterator,
TsSchema output_schema) |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
calcAggregationTimestamp(long timestamp) |
protected static TsSchema |
createSchemaConstantStep(TsSchema schema,
int fromStep,
int toStep) |
protected static TsSchema |
createSchemaFromConstantToVariableStep(TsSchema schema,
int fromStep,
TsSchema.Aggregation toAggregation) |
protected static TsSchema |
createSchemaVariableStep(TsSchema schema,
TsSchema.Aggregation fromAggregation,
TsSchema.Aggregation toAggregation) |
protected abstract AggregationType[] |
getAggregationTypes(Sensor[] sensors) |
protected TsEntry |
getNext()
Request next element.
|
protected abstract boolean |
isValidAggregate(int collectorCount,
AggregationType aggregationType)
checks if enough values have been collected for one aggregation unit
|
getProcessingChain
close, hasNext, next
getNames, getSchema, isLive, isNotLive, toSchemas, toString, toTimeSeries, toTimestampSeries, writeConsole, writeConsole, writeCSV
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProcessingTitle
createUnknown, of
createUnknown
public static final int QUALITY_COUNTERS
public static final int QUALITY_COUNTER_POS_VALUES
public static final int QUALITY_COUNTER_POS_INTERPOLATED
public AbstractAggregationIterator(TsDB tsdb, TsIterator input_iterator, TsSchema output_schema)
protected static TsSchema createSchemaConstantStep(TsSchema schema, int fromStep, int toStep)
protected static TsSchema createSchemaFromConstantToVariableStep(TsSchema schema, int fromStep, TsSchema.Aggregation toAggregation)
protected static TsSchema createSchemaVariableStep(TsSchema schema, TsSchema.Aggregation fromAggregation, TsSchema.Aggregation toAggregation)
protected abstract AggregationType[] getAggregationTypes(Sensor[] sensors)
protected abstract boolean isValidAggregate(int collectorCount, AggregationType aggregationType)
collectorCount
- aggregationType
- protected abstract long calcAggregationTimestamp(long timestamp)
protected TsEntry getNext()
MoveIterator
It's guaranteed to not be called again when it first returns null (no next element).
This method should be called by MoveIterator internal only.
getNext
in class MoveIterator