Package org.apache.calcite.rel.logical
Class LogicalMatch
java.lang.Object
org.apache.calcite.rel.AbstractRelNode
org.apache.calcite.rel.SingleRel
org.apache.calcite.rel.core.Match
org.apache.calcite.rel.logical.LogicalMatch
- All Implemented Interfaces:
- Cloneable,- RelOptNode,- RelNode
Sub-class of 
Match
 not targeted at any particular engine or calling convention.- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.rel.core.MatchMatch.RexMRAggCallNested classes/interfaces inherited from interface org.apache.calcite.rel.RelNodeRelNode.Context
- 
Field SummaryFields inherited from class org.apache.calcite.rel.core.Matchafter, aggregateCalls, aggregateCallsPreVar, allRows, interval, measures, orderKeys, partitionKeys, pattern, patternDefinitions, strictEnd, strictStart, subsetsFields inherited from class org.apache.calcite.rel.AbstractRelNodedigest, id, rowType, traitSet
- 
Constructor SummaryConstructorsConstructorDescriptionLogicalMatch(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, @Nullable RexNode interval) Creates a LogicalMatch.
- 
Method SummaryModifier and TypeMethodDescriptionaccept(RelShuttle shuttle) Accepts a visit from a shuttle.copy(RelTraitSet traitSet, List<RelNode> inputs) Creates a copy of this relational expression, perhaps changing traits and inputs.static LogicalMatchcreate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, @Nullable RexNode interval) Creates a LogicalMatch.static LogicalMatchcreate(RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, @Nullable RexNode interval) Creates a LogicalMatch.Methods inherited from class org.apache.calcite.rel.core.MatchexplainTerms, getAfter, getInterval, getMeasures, getOrderKeys, getPartitionKeys, getPattern, getPatternDefinitions, getSubsets, isAllRows, isStrictEnd, isStrictStartMethods inherited from class org.apache.calcite.rel.SingleRelchildrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInputMethods inherited from class org.apache.calcite.rel.AbstractRelNodeaccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.rel.RelNodeexplain, fieldIsNullable, stripped
- 
Constructor Details- 
LogicalMatchpublic LogicalMatch(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, @Nullable RexNode interval) Creates a LogicalMatch.- Parameters:
- cluster- Cluster
- traitSet- Trait set
- input- Input relational expression
- rowType- Row type
- pattern- Regular Expression defining pattern variables
- strictStart- Whether it is a strict start pattern
- strictEnd- Whether it is a strict end pattern
- patternDefinitions- Pattern definitions
- measures- Measure definitions
- after- After match definitions
- subsets- Subset definitions
- allRows- Whether all rows per match (false means one row per match)
- partitionKeys- Partition by columns
- orderKeys- Order by columns
- interval- Interval definition, null if WITHIN clause is not defined
 
 
- 
- 
Method Details- 
createpublic static LogicalMatch create(RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, @Nullable RexNode interval) Creates a LogicalMatch.
- 
createpublic static LogicalMatch create(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, @Nullable RexNode interval) Creates a LogicalMatch.
- 
copyDescription copied from interface:RelNodeCreates a copy of this relational expression, perhaps changing traits and inputs.Sub-classes with other important attributes are encouraged to create variants of this method with more parameters. - Specified by:
- copyin interface- RelNode
- Overrides:
- copyin class- AbstractRelNode
- Parameters:
- traitSet- Trait set
- inputs- Inputs
- Returns:
- Copy of this relational expression, substituting traits and inputs
 
- 
acceptDescription copied from interface:RelNodeAccepts a visit from a shuttle.- Specified by:
- acceptin interface- RelNode
- Overrides:
- acceptin class- AbstractRelNode
- Parameters:
- shuttle- Shuttle
- Returns:
- A copy of this node incorporating changes made by the shuttle to this node's children
 
 
-