Class SeriesScanNode

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.iotdb.consensus.common.request.IConsensusRequest, IPartitionRelatedNode

    public class SeriesScanNode
    extends SeriesSourceNode
    SeriesScanNode is responsible for read data a specific series. When reading data, the SeriesScanNode can read the raw data batch by batch. And also, it can leverage the filter and other info to decrease the result set.

    Children type: no child is allowed for SeriesScanNode

    • Constructor Detail

      • SeriesScanNode

        public SeriesScanNode​(PlanNodeId id,
                              MeasurementPath seriesPath,
                              Ordering scanOrder,
                              @Nullable
                              org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter,
                              @Nullable
                              org.apache.iotdb.tsfile.read.filter.basic.Filter valueFilter,
                              int limit,
                              int offset,
                              org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet dataRegionReplicaSet)
    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • open

        public void open()
                  throws java.lang.Exception
        Specified by:
        open in class SourceNode
        Throws:
        java.lang.Exception
      • getRegionReplicaSet

        public org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet getRegionReplicaSet()
      • setRegionReplicaSet

        public void setRegionReplicaSet​(org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet dataRegion)
        Specified by:
        setRegionReplicaSet in class SourceNode
      • getLimit

        public int getLimit()
      • getOffset

        public int getOffset()
      • setLimit

        public void setLimit​(int limit)
      • setOffset

        public void setOffset​(int offset)
      • getScanOrder

        public Ordering getScanOrder()
      • setScanOrder

        public void setScanOrder​(Ordering scanOrder)
      • getTimeFilter

        @Nullable
        public org.apache.iotdb.tsfile.read.filter.basic.Filter getTimeFilter()
      • setTimeFilter

        public void setTimeFilter​(@Nullable
                                  org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter)
      • getValueFilter

        @Nullable
        public org.apache.iotdb.tsfile.read.filter.basic.Filter getValueFilter()
      • getOutputColumnNames

        public java.util.List<java.lang.String> getOutputColumnNames()
        Specified by:
        getOutputColumnNames in class PlanNode
      • serializeAttributes

        protected void serializeAttributes​(java.nio.ByteBuffer byteBuffer)
        Specified by:
        serializeAttributes in class PlanNode
      • serializeAttributes

        protected void serializeAttributes​(java.io.DataOutputStream stream)
                                    throws java.io.IOException
        Specified by:
        serializeAttributes in class PlanNode
        Throws:
        java.io.IOException
      • deserialize

        public static SeriesScanNode deserialize​(java.nio.ByteBuffer byteBuffer)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class PlanNode