Class DescReadBatchData

  • Direct Known Subclasses:
    DescReadWriteBatchData

    public class DescReadBatchData
    extends BatchData
    This class is just for reading batch data reversely. The data source is from page reader. For example, the timeRet from pageReader is [1, 1000], It will be written in ascending sequence, but the sequence of reading will be 1000 -> 1.
    • Constructor Detail

      • DescReadBatchData

        public DescReadBatchData()
      • DescReadBatchData

        public DescReadBatchData​(TSDataType dataType)
    • Method Detail

      • resetBatchData

        public void resetBatchData()
        Description copied from class: BatchData
        This method is used to reset batch data when more than one group by aggregation functions visit the same batch data
        Overrides:
        resetBatchData in class BatchData
      • flip

        public BatchData flip()
        When put data, the writeIndex increases while the readIndex remains 0. For descending read, we need to read from writeIndex to 0 (set the readIndex to writeIndex)
        Overrides:
        flip in class BatchData