Class AlignedPriorityMergeReader

  • All Implemented Interfaces:
    org.apache.iotdb.tsfile.read.reader.IPointReader

    public class AlignedPriorityMergeReader
    extends PriorityMergeReader
    • Constructor Detail

      • AlignedPriorityMergeReader

        public AlignedPriorityMergeReader()
    • Method Detail

      • fillNullValue

        protected void fillNullValue​(org.apache.iotdb.tsfile.read.TimeValuePair v,
                                     org.apache.iotdb.tsfile.read.TimeValuePair c)
        In the case of aligned time seres, like d1.s1, d1.s2, d1.s3, we may first only write d1.s2, d1.s3 (2, 3)and then flush it into one tsfile, and then an unseq record come, it contains only d1.s1 and d1.s3 -> (10,30). So now we have [null, 2, 3] with low priority and [10, null, 30] with high priority. we use [null, 2, 3] to fill null value in [10, null, 30], so we get [10, 2, 30], we won't use 3 to replace 30, because [10, null, 30] has higher priority
        Overrides:
        fillNullValue in class PriorityMergeReader
        Parameters:
        v - TimeValuePair with high priority needs to be filled
        c - TimeValuePair with low priority is used to fill the v