Class MaxTimeDescAggrResult
- java.lang.Object
-
- org.apache.iotdb.db.query.aggregation.AggregateResult
-
- org.apache.iotdb.db.query.aggregation.impl.MaxTimeAggrResult
-
- org.apache.iotdb.db.query.aggregation.impl.MaxTimeDescAggrResult
-
- All Implemented Interfaces:
java.lang.Cloneable
public class MaxTimeDescAggrResult extends MaxTimeAggrResult
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.query.aggregation.AggregateResult
hasCandidateResult, resultDataType, TIME_LENGTH_FOR_FIRST_VALUE, timestamp
-
-
Constructor Summary
Constructors Constructor Description MaxTimeDescAggrResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasFinalResult()Judge if aggregation results have been calculated.booleanisAscending()Whether the AggregationResult accepts data in time ascending order, if it returns false, the data should be passed in time descending order.voidupdateResultFromPageData(org.apache.iotdb.tsfile.read.common.IBatchDataIterator batchIterator, long minBound, long maxBound)Aggregate results cannot be calculated using Statistics directly, using the data in each page.voidupdateResultFromStatistics(org.apache.iotdb.tsfile.file.metadata.statistics.Statistics statistics)Calculate the aggregation using StatisticsvoidupdateResultUsingTimestamps(long[] timestamps, int length, IReaderByTimestamp dataReader)This method calculates the aggregation using common timestamps of the cross series filter.voidupdateResultUsingValues(long[] timestamps, int length, ValueIterator valueIterator)This method calculates the aggregation using values that have been calculated-
Methods inherited from class org.apache.iotdb.db.query.aggregation.impl.MaxTimeAggrResult
deserializeSpecificFields, getResult, getTime, merge, serializeSpecificFields, updateMaxTimeResult, updateResultFromPageData
-
Methods inherited from class org.apache.iotdb.db.query.aggregation.AggregateResult
clone, deserializeFrom, getAggregationType, getBinaryValue, getBooleanValue, getDoubleAbsValue, getDoubleValue, getFloatAbsValue, getFloatValue, getIntAbsValue, getIntValue, getLongAbsValue, getLongValue, getResultDataType, getValue, hasCandidateResult, reset, serialize, serializeTo, setBinaryValue, setBooleanValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setTime, setValue, toString
-
-
-
-
Method Detail
-
updateResultFromStatistics
public void updateResultFromStatistics(org.apache.iotdb.tsfile.file.metadata.statistics.Statistics statistics)
Description copied from class:AggregateResultCalculate the aggregation using Statistics- Overrides:
updateResultFromStatisticsin classMaxTimeAggrResult- Parameters:
statistics- chunkStatistics or pageStatistics
-
updateResultFromPageData
public void updateResultFromPageData(org.apache.iotdb.tsfile.read.common.IBatchDataIterator batchIterator, long minBound, long maxBound)Description copied from class:AggregateResultAggregate results cannot be calculated using Statistics directly, using the data in each page. This method is used in GROUP BY aggregation query.- Overrides:
updateResultFromPageDatain classMaxTimeAggrResult- Parameters:
batchIterator- the data in PageminBound- calculate points whose time >= boundmaxBound- calculate points whose time < bound
-
updateResultUsingTimestamps
public void updateResultUsingTimestamps(long[] timestamps, int length, IReaderByTimestamp dataReader) throws java.io.IOExceptionDescription copied from class:AggregateResultThis method calculates the aggregation using common timestamps of the cross series filter.- Overrides:
updateResultUsingTimestampsin classMaxTimeAggrResult- Throws:
java.io.IOException- TsFile data read error
-
updateResultUsingValues
public void updateResultUsingValues(long[] timestamps, int length, ValueIterator valueIterator)Description copied from class:AggregateResultThis method calculates the aggregation using values that have been calculated- Overrides:
updateResultUsingValuesin classMaxTimeAggrResult
-
hasFinalResult
public boolean hasFinalResult()
Description copied from class:AggregateResultJudge if aggregation results have been calculated. In other words, if the aggregated result does not need to compute the remaining data, it returns true.- Overrides:
hasFinalResultin classMaxTimeAggrResult- Returns:
- If the aggregation result has been calculated return true, else return false.
-
isAscending
public boolean isAscending()
Description copied from class:AggregateResultWhether the AggregationResult accepts data in time ascending order, if it returns false, the data should be passed in time descending order.- Overrides:
isAscendingin classAggregateResult
-
-