Class LastValueDescAccumulator
- java.lang.Object
-
- org.apache.iotdb.db.mpp.aggregation.LastValueAccumulator
-
- org.apache.iotdb.db.mpp.aggregation.LastValueDescAccumulator
-
- All Implemented Interfaces:
Accumulator
public class LastValueDescAccumulator extends LastValueAccumulator
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.mpp.aggregation.LastValueAccumulator
initResult, lastValue, maxTime, seriesDataType
-
-
Constructor Summary
Constructors Constructor Description LastValueDescAccumulator(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType seriesDataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intaddBinaryInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)protected intaddBooleanInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)protected intaddDoubleInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)protected intaddFloatInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)protected intaddIntInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)protected intaddLongInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)booleanhasFinalResult()This method can only be used in seriesAggregateScanOperator.voidreset()-
Methods inherited from class org.apache.iotdb.db.mpp.aggregation.LastValueAccumulator
addInput, addIntermediate, addStatistics, getFinalType, getIntermediateType, outputFinal, outputIntermediate, setFinal, updateBinaryLastValue, updateBooleanLastValue, updateDoubleLastValue, updateFloatLastValue, updateIntLastValue, updateLongLastValue
-
-
-
-
Method Detail
-
hasFinalResult
public boolean hasFinalResult()
Description copied from interface:AccumulatorThis method can only be used in seriesAggregateScanOperator. For first_value or last_value in decreasing order, we can get final result by the first record.- Specified by:
hasFinalResultin interfaceAccumulator- Overrides:
hasFinalResultin classLastValueAccumulator
-
reset
public void reset()
- Specified by:
resetin interfaceAccumulator- Overrides:
resetin classLastValueAccumulator
-
addIntInput
protected int addIntInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)- Overrides:
addIntInputin classLastValueAccumulator
-
addLongInput
protected int addLongInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)- Overrides:
addLongInputin classLastValueAccumulator
-
addFloatInput
protected int addFloatInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)- Overrides:
addFloatInputin classLastValueAccumulator
-
addDoubleInput
protected int addDoubleInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)- Overrides:
addDoubleInputin classLastValueAccumulator
-
addBooleanInput
protected int addBooleanInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)- Overrides:
addBooleanInputin classLastValueAccumulator
-
addBinaryInput
protected int addBinaryInput(org.apache.iotdb.tsfile.read.common.block.column.Column[] column, org.apache.iotdb.tsfile.read.common.TimeRange timeRange)- Overrides:
addBinaryInputin classLastValueAccumulator
-
-