Class SchemaFetchScanNode
- 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.metedata.read.SchemaFetchScanNode
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.iotdb.consensus.common.request.IConsensusRequest,IPartitionRelatedNode
public class SchemaFetchScanNode extends SourceNode
This class defines the scan task of schema fetcher.
-
-
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 SchemaFetchScanNode(PlanNodeId id, org.apache.iotdb.commons.path.PartialPath storageGroup, PathPatternTree patternTree, java.util.Map<java.lang.Integer,Template> templateMap)
-
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 SchemaFetchScanNodedeserialize(java.nio.ByteBuffer byteBuffer)java.util.List<PlanNode>getChildren()java.util.List<java.lang.String>getOutputColumnNames()PathPatternTreegetPatternTree()org.apache.iotdb.common.rpc.thrift.TRegionReplicaSetgetRegionReplicaSet()org.apache.iotdb.commons.path.PartialPathgetStorageGroup()java.util.Map<java.lang.Integer,Template>getTemplateMap()voidopen()protected voidserializeAttributes(java.io.DataOutputStream stream)protected voidserializeAttributes(java.nio.ByteBuffer byteBuffer)voidsetRegionReplicaSet(org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet schemaRegionReplicaSet)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
cloneWithChildren, equals, getPlanNodeId, hashCode, serialize, serialize, serializeToByteBuffer, setPlanNodeId
-
-
-
-
Constructor Detail
-
SchemaFetchScanNode
public SchemaFetchScanNode(PlanNodeId id, org.apache.iotdb.commons.path.PartialPath storageGroup, PathPatternTree patternTree, java.util.Map<java.lang.Integer,Template> templateMap)
-
-
Method Detail
-
getStorageGroup
public org.apache.iotdb.commons.path.PartialPath getStorageGroup()
-
getPatternTree
public PathPatternTree getPatternTree()
-
getTemplateMap
public java.util.Map<java.lang.Integer,Template> getTemplateMap()
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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 SchemaFetchScanNode deserialize(java.nio.ByteBuffer byteBuffer)
-
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 schemaRegionReplicaSet)
- Specified by:
setRegionReplicaSetin classSourceNode
-
close
public void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
-