Class ExchangeNode
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.process.ExchangeNode
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest
public class ExchangeNode extends PlanNode
-
-
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 ExchangeNode(PlanNodeId id)
-
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()voidcleanChildren()PlanNodeclone()static ExchangeNodedeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)PlanNodegetChild()java.util.List<PlanNode>getChildren()java.util.List<java.lang.String>getOutputColumnNames()FragmentSinkNodegetRemoteSourceNode()java.lang.StringgetSourceAddress()org.apache.iotdb.common.rpc.thrift.TEndPointgetUpstreamEndpoint()FragmentInstanceIdgetUpstreamInstanceId()PlanNodeIdgetUpstreamPlanNodeId()inthashCode()protected voidserializeAttributes(java.io.DataOutputStream stream)protected voidserializeAttributes(java.nio.ByteBuffer byteBuffer)voidsetChild(PlanNode child)voidsetOutputColumnNames(java.util.List<java.lang.String> outputColumnNames)voidsetRemoteSourceNode(FragmentSinkNode remoteSourceNode)voidsetUpstream(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, FragmentInstanceId instanceId, PlanNodeId nodeId)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
-
ExchangeNode
public ExchangeNode(PlanNodeId id)
-
-
Method Detail
-
getChildren
public java.util.List<PlanNode> getChildren()
- Specified by:
getChildrenin classPlanNode
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
allowedChildCount
public int allowedChildCount()
- Specified by:
allowedChildCountin classPlanNode
-
getOutputColumnNames
public java.util.List<java.lang.String> getOutputColumnNames()
- Specified by:
getOutputColumnNamesin classPlanNode
-
setOutputColumnNames
public void setOutputColumnNames(java.util.List<java.lang.String> outputColumnNames)
-
setUpstream
public void setUpstream(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, FragmentInstanceId instanceId, PlanNodeId nodeId)
-
deserialize
public static ExchangeNode deserialize(java.nio.ByteBuffer byteBuffer)
-
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
-
getChild
public PlanNode getChild()
-
setChild
public void setChild(PlanNode child)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSourceAddress
public java.lang.String getSourceAddress()
-
getRemoteSourceNode
public FragmentSinkNode getRemoteSourceNode()
-
setRemoteSourceNode
public void setRemoteSourceNode(FragmentSinkNode remoteSourceNode)
-
cleanChildren
public void cleanChildren()
-
getUpstreamEndpoint
public org.apache.iotdb.common.rpc.thrift.TEndPoint getUpstreamEndpoint()
-
getUpstreamInstanceId
public FragmentInstanceId getUpstreamInstanceId()
-
getUpstreamPlanNodeId
public PlanNodeId getUpstreamPlanNodeId()
-
-