public class DataSourceNode extends OptimizerNode
OptimizerNode.UnclosedBranchDescriptorcachedPlans, closedBranchingNodes, costWeight, estimatedNumRecords, estimatedOutputSize, hereJoinedBranches, id, MAX_DYNAMIC_PATH_COST_WEIGHT, onDynamicPath, openBranches, uniqueFields| 构造器和说明 |
|---|
DataSourceNode(org.apache.flink.api.common.operators.GenericDataSourceBase<?,?> pactContract)
Creates a new DataSourceNode for the given contract.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(org.apache.flink.util.Visitor<OptimizerNode> visitor)
This method implements the visit of a depth-first graph traversing visitor.
|
void |
computeInterestingPropertiesForInputs(CostEstimator estimator)
Tells the node to compute the interesting properties for its inputs.
|
protected void |
computeOperatorSpecificDefaultEstimates(DataStatistics statistics) |
void |
computeUnclosedBranchStack()
This method causes the node to compute the description of open branches in its sub-plan.
|
List<PlanNode> |
getAlternativePlans(CostEstimator estimator)
Computes the plan alternatives for this node, an implicitly for all nodes that are children
of this node.
|
List<DagConnection> |
getIncomingConnections()
Gets all incoming connections of this node.
|
org.apache.flink.api.common.operators.GenericDataSourceBase<?,?> |
getOperator()
Gets the contract object for this data source node.
|
String |
getOperatorName()
Gets the name of this node, which is the name of the function/operator, or data source / data
sink.
|
org.apache.flink.api.common.operators.SemanticProperties |
getSemanticProperties() |
void |
setInput(Map<org.apache.flink.api.common.operators.Operator<?>,OptimizerNode> contractToNode,
org.apache.flink.api.common.ExecutionMode defaultDataExchangeMode)
This function connects the predecessors to this operator.
|
void |
setParallelism(int parallelism)
Sets the parallelism for this optimizer node.
|
addBroadcastConnection, addClosedBranch, addClosedBranches, addOutgoingConnection, areBranchCompatible, clearInterestingProperties, computeOutputEstimates, computeUnclosedBranchStackForBroadcastInputs, computeUnionOfInterestingPropertiesFromSuccessors, getBranchesForParent, getBroadcastConnectionNames, getBroadcastConnections, getClosedBranchingNodes, getCostWeight, getDumpableInputs, getEstimatedAvgWidthPerOutputRecord, getEstimatedNumRecords, getEstimatedOutputSize, getId, getInterestingProperties, getMaxDepth, getMinimalMemoryAcrossAllSubTasks, getOpenBranches, getOptimizerNode, getOutgoingConnections, getParallelism, getPlanNode, getPredecessors, getUniqueFields, hasUnclosedBranches, haveAllOutputConnectionInterestingProperties, identifyDynamicPath, initId, isBranching, isOnDynamicPath, markAllOutgoingConnectionsAsPipelineBreaking, mergeLists, prunePlanAlternatives, prunePlanAlternativesWithCommonBranching, readStubAnnotations, readUniqueFieldsAnnotation, removeClosedBranches, setBroadcastInputs, setEstimatedNumRecords, setEstimatedOutputSize, toStringpublic DataSourceNode(org.apache.flink.api.common.operators.GenericDataSourceBase<?,?> pactContract)
pactContract - The data source contract object.public org.apache.flink.api.common.operators.GenericDataSourceBase<?,?> getOperator()
getOperator 在类中 OptimizerNodepublic String getOperatorName()
OptimizerNodegetOperatorName 在类中 OptimizerNodepublic void setParallelism(int parallelism)
OptimizerNodesetParallelism 在类中 OptimizerNodeparallelism - The parallelism to set. If this value is ExecutionConfig.PARALLELISM_DEFAULT then the system will take the default number of
parallel instances.public List<DagConnection> getIncomingConnections()
OptimizerNodegetIncomingConnections 在类中 OptimizerNodepublic void setInput(Map<org.apache.flink.api.common.operators.Operator<?>,OptimizerNode> contractToNode, org.apache.flink.api.common.ExecutionMode defaultDataExchangeMode)
OptimizerNodesetInput 在类中 OptimizerNodecontractToNode - The map from program operators to optimizer nodes.defaultDataExchangeMode - The data exchange mode to use, if the operator does not specify
one.protected void computeOperatorSpecificDefaultEstimates(DataStatistics statistics)
public void computeInterestingPropertiesForInputs(CostEstimator estimator)
OptimizerNodecomputeInterestingPropertiesForInputs 在类中 OptimizerNodeestimator - The CostEstimator instance to use for plan cost estimation.public void computeUnclosedBranchStack()
OptimizerNodeopenBranches
field to a stack of unclosed branches, the latest one top. A branch is considered closed, if
some later node sees all of the branching node's outputs, no matter if there have been more
branches to different paths in the meantime.computeUnclosedBranchStack 在类中 OptimizerNodepublic List<PlanNode> getAlternativePlans(CostEstimator estimator)
OptimizerNodegetAlternatives() on its
children to get their plan alternatives, and build its own alternatives on top of those.getAlternativePlans 在类中 OptimizerNodeestimator - The cost estimator used to estimate the costs of each plan alternative.public org.apache.flink.api.common.operators.SemanticProperties getSemanticProperties()
getSemanticProperties 在类中 OptimizerNodepublic void accept(org.apache.flink.util.Visitor<OptimizerNode> visitor)
OptimizerNodepreVisit() method, then hand the visitor to their children, and
finally call the postVisit() method.accept 在接口中 org.apache.flink.util.Visitable<OptimizerNode>accept 在类中 OptimizerNodevisitor - The graph traversing visitor.Visitable.accept(org.apache.flink.util.Visitor)Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.