Package io.trino.sql.planner
Class PlanFragment
- java.lang.Object
-
- io.trino.sql.planner.PlanFragment
-
@Immutable public class PlanFragment extends Object
-
-
Constructor Summary
Constructors Constructor Description PlanFragment(PlanFragmentId id, PlanNode root, Map<Symbol,Type> symbols, PartitioningHandle partitioning, List<PlanNodeId> partitionedSources, PartitioningScheme partitioningScheme, StageExecutionDescriptor stageExecutionDescriptor, StatsAndCosts statsAndCosts, Optional<String> jsonRepresentation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanFragmentIdgetId()Optional<String>getJsonRepresentation()Set<PlanNode>getPartitionedSourceNodes()List<PlanNodeId>getPartitionedSources()PartitioningHandlegetPartitioning()PartitioningSchemegetPartitioningScheme()List<RemoteSourceNode>getRemoteSourceNodes()PlanNodegetRoot()StageExecutionDescriptorgetStageExecutionDescriptor()StatsAndCostsgetStatsAndCosts()Map<Symbol,Type>getSymbols()List<Type>getTypes()booleanisLeaf()booleanisPartitionedSources(PlanNodeId nodeId)StringtoString()PlanFragmentwithBucketToPartition(Optional<int[]> bucketToPartition)PlanFragmentwithDynamicLifespanScheduleGroupedExecution(List<PlanNodeId> capableTableScanNodes)PlanFragmentwithFixedLifespanScheduleGroupedExecution(List<PlanNodeId> capableTableScanNodes)PlanFragmentwithoutEmbeddedJsonRepresentation()
-
-
-
Constructor Detail
-
PlanFragment
public PlanFragment(PlanFragmentId id, PlanNode root, Map<Symbol,Type> symbols, PartitioningHandle partitioning, List<PlanNodeId> partitionedSources, PartitioningScheme partitioningScheme, StageExecutionDescriptor stageExecutionDescriptor, StatsAndCosts statsAndCosts, Optional<String> jsonRepresentation)
-
-
Method Detail
-
getId
public PlanFragmentId getId()
-
getRoot
public PlanNode getRoot()
-
getPartitioning
public PartitioningHandle getPartitioning()
-
getPartitionedSources
public List<PlanNodeId> getPartitionedSources()
-
isPartitionedSources
public boolean isPartitionedSources(PlanNodeId nodeId)
-
getPartitioningScheme
public PartitioningScheme getPartitioningScheme()
-
getStageExecutionDescriptor
public StageExecutionDescriptor getStageExecutionDescriptor()
-
getStatsAndCosts
public StatsAndCosts getStatsAndCosts()
-
withoutEmbeddedJsonRepresentation
public PlanFragment withoutEmbeddedJsonRepresentation()
-
isLeaf
public boolean isLeaf()
-
getRemoteSourceNodes
public List<RemoteSourceNode> getRemoteSourceNodes()
-
withBucketToPartition
public PlanFragment withBucketToPartition(Optional<int[]> bucketToPartition)
-
withFixedLifespanScheduleGroupedExecution
public PlanFragment withFixedLifespanScheduleGroupedExecution(List<PlanNodeId> capableTableScanNodes)
-
withDynamicLifespanScheduleGroupedExecution
public PlanFragment withDynamicLifespanScheduleGroupedExecution(List<PlanNodeId> capableTableScanNodes)
-
-