Class SumAggrResult

    • Constructor Detail

      • SumAggrResult

        public SumAggrResult​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType seriesDataType)
    • Method Detail

      • updateResultFromStatistics

        public void updateResultFromStatistics​(org.apache.iotdb.tsfile.file.metadata.statistics.Statistics statistics)
        Description copied from class: AggregateResult
        Calculate the aggregation using Statistics
        Specified by:
        updateResultFromStatistics in class AggregateResult
        Parameters:
        statistics - chunkStatistics or pageStatistics
      • updateResultFromPageData

        public void updateResultFromPageData​(org.apache.iotdb.tsfile.read.common.IBatchDataIterator batchIterator)
        Description copied from class: AggregateResult
        Aggregate results cannot be calculated using Statistics directly, using the data in each page. This method is used in global aggregation query.
        Specified by:
        updateResultFromPageData in class AggregateResult
        Parameters:
        batchIterator - the data in Page
      • updateResultFromPageData

        public void updateResultFromPageData​(org.apache.iotdb.tsfile.read.common.IBatchDataIterator batchIterator,
                                             long minBound,
                                             long maxBound)
        Description copied from class: AggregateResult
        Aggregate results cannot be calculated using Statistics directly, using the data in each page. This method is used in GROUP BY aggregation query.
        Specified by:
        updateResultFromPageData in class AggregateResult
        Parameters:
        batchIterator - the data in Page
        minBound - calculate points whose time >= bound
        maxBound - calculate points whose time < bound
      • updateResultUsingTimestamps

        public void updateResultUsingTimestamps​(long[] timestamps,
                                                int length,
                                                IReaderByTimestamp dataReader)
                                         throws java.io.IOException
        Description copied from class: AggregateResult
        This method calculates the aggregation using common timestamps of the cross series filter.
        Specified by:
        updateResultUsingTimestamps in class AggregateResult
        Throws:
        java.io.IOException - TsFile data read error
      • isNotNull

        public boolean isNotNull()
      • hasFinalResult

        public boolean hasFinalResult()
        Description copied from class: AggregateResult
        Judge if aggregation results have been calculated. In other words, if the aggregated result does not need to compute the remaining data, it returns true.
        Specified by:
        hasFinalResult in class AggregateResult
        Returns:
        If the aggregation result has been calculated return true, else return false.
      • serializeSpecificFields

        protected void serializeSpecificFields​(java.io.OutputStream outputStream)
                                        throws java.io.IOException
        Specified by:
        serializeSpecificFields in class AggregateResult
        Throws:
        java.io.IOException