Class ApplyPreferredTableExecutePartitioning
java.lang.Object
io.trino.sql.planner.iterative.rule.ApplyPreferredTableExecutePartitioning
- All Implemented Interfaces:
Rule<TableExecuteNode>
public class ApplyPreferredTableExecutePartitioning
extends Object
implements Rule<TableExecuteNode>
Replaces
TableExecuteNode with TableExecuteNode.getPreferredPartitioningScheme()
with a TableExecuteNode with TableExecuteNode.getPartitioningScheme() set.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(TableExecuteNode node, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.boolean
-
Field Details
-
TABLE_EXECUTE_NODE_WITH_PREFERRED_PARTITIONING
-
-
Constructor Details
-
ApplyPreferredTableExecutePartitioning
public ApplyPreferredTableExecutePartitioning()
-
-
Method Details
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<TableExecuteNode>
-
isEnabled
- Specified by:
isEnabledin interfaceRule<TableExecuteNode>
-
apply
- Specified by:
applyin interfaceRule<TableExecuteNode>
-