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>
ReplacesTableExecuteNodewithTableExecuteNode.getPreferredPartitioningScheme()with aTableExecuteNodewithTableExecuteNode.getPartitioningScheme()set.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern<TableExecuteNode>TABLE_EXECUTE_NODE_WITH_PREFERRED_PARTITIONING
-
Constructor Summary
Constructors Constructor Description ApplyPreferredTableExecutePartitioning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(TableExecuteNode node, Captures captures, Rule.Context context)Pattern<TableExecuteNode>getPattern()Returns a pattern to which plan nodes this rule applies.booleanisEnabled(Session session)
-
-
-
Field Detail
-
TABLE_EXECUTE_NODE_WITH_PREFERRED_PARTITIONING
public static final Pattern<TableExecuteNode> TABLE_EXECUTE_NODE_WITH_PREFERRED_PARTITIONING
-
-
Method Detail
-
getPattern
public Pattern<TableExecuteNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<TableExecuteNode>
-
isEnabled
public boolean isEnabled(Session session)
- Specified by:
isEnabledin interfaceRule<TableExecuteNode>
-
apply
public Rule.Result apply(TableExecuteNode node, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<TableExecuteNode>
-
-