Class SeriesScanNode
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.source.SourceNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.source.SeriesSourceNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.source.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
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
CHILD_COUNT_NO_LIMIT, NO_CHILD_ALLOWED, ONE_CHILD
-
-
Constructor Summary
Constructors Constructor Description SeriesScanNode(PlanNodeId id, MeasurementPath seriesPath)SeriesScanNode(PlanNodeId id, MeasurementPath seriesPath, Ordering scanOrder)SeriesScanNode(PlanNodeId id, MeasurementPath seriesPath, Ordering scanOrder, org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter, org.apache.iotdb.tsfile.read.filter.basic.Filter valueFilter, int limit, int offset, org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet dataRegionReplicaSet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(PlanVisitor<R,C> visitor, C context)voidaddChild(PlanNode child)intallowedChildCount()PlanNodeclone()voidclose()static SeriesScanNodedeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)java.util.List<PlanNode>getChildren()intgetLimit()intgetOffset()java.util.List<java.lang.String>getOutputColumnNames()org.apache.iotdb.commons.path.PartialPathgetPartitionPath()org.apache.iotdb.tsfile.read.filter.basic.FiltergetPartitionTimeFilter()org.apache.iotdb.common.rpc.thrift.TRegionReplicaSetgetRegionReplicaSet()OrderinggetScanOrder()MeasurementPathgetSeriesPath()org.apache.iotdb.tsfile.read.filter.basic.FiltergetTimeFilter()org.apache.iotdb.tsfile.read.filter.basic.FiltergetValueFilter()inthashCode()voidopen()protected voidserializeAttributes(java.io.DataOutputStream stream)protected voidserializeAttributes(java.nio.ByteBuffer byteBuffer)voidsetLimit(int limit)voidsetOffset(int offset)voidsetRegionReplicaSet(org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet dataRegion)voidsetScanOrder(Ordering scanOrder)voidsetTimeFilter(org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
cloneWithChildren, getPlanNodeId, serialize, serialize, serializeToByteBuffer, setPlanNodeId
-
-
-
-
Constructor Detail
-
SeriesScanNode
public SeriesScanNode(PlanNodeId id, MeasurementPath seriesPath)
-
SeriesScanNode
public SeriesScanNode(PlanNodeId id, MeasurementPath seriesPath, Ordering scanOrder)
-
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:
openin classSourceNode- 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:
setRegionReplicaSetin classSourceNode
-
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)
-
getSeriesPath
public MeasurementPath getSeriesPath()
-
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()
-
getChildren
public java.util.List<PlanNode> getChildren()
- Specified by:
getChildrenin classPlanNode
-
allowedChildCount
public int allowedChildCount()
- Specified by:
allowedChildCountin classPlanNode
-
getOutputColumnNames
public java.util.List<java.lang.String> getOutputColumnNames()
- Specified by:
getOutputColumnNamesin classPlanNode
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
serializeAttributes
protected void serializeAttributes(java.nio.ByteBuffer byteBuffer)
- Specified by:
serializeAttributesin classPlanNode
-
serializeAttributes
protected void serializeAttributes(java.io.DataOutputStream stream) throws java.io.IOException- Specified by:
serializeAttributesin classPlanNode- Throws:
java.io.IOException
-
deserialize
public static SeriesScanNode deserialize(java.nio.ByteBuffer byteBuffer)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPartitionPath
public org.apache.iotdb.commons.path.PartialPath getPartitionPath()
- Specified by:
getPartitionPathin classSeriesSourceNode
-
getPartitionTimeFilter
public org.apache.iotdb.tsfile.read.filter.basic.Filter getPartitionTimeFilter()
- Specified by:
getPartitionTimeFilterin classSeriesSourceNode
-
-