org.apache.calcite.rel.core.Match Java Examples

The following examples show how to use org.apache.calcite.rel.core.Match. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlinkRelMdCollation.java    From flink with Apache License 2.0 6 votes vote down vote up
public com.google.common.collect.ImmutableList<RelCollation> collations(Match rel, RelMetadataQuery mq) {
	return com.google.common.collect.ImmutableList.copyOf(match(
			mq,
			rel.getInput(),
			rel.getRowType(),
			rel.getPattern(),
			rel.isStrictStart(),
			rel.isStrictEnd(),
			rel.getPatternDefinitions(),
			rel.getMeasures(),
			rel.getAfter(),
			rel.getSubsets(),
			rel.isAllRows(),
			rel.getPartitionKeys(),
			rel.getOrderKeys(),
			rel.getInterval()));
}
 
Example #2
Source File: LogicalMatch.java    From Bats with Apache License 2.0 5 votes vote down vote up
@Override public Match copy(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, List<RexNode> partitionKeys, RelCollation orderKeys,
    RexNode interval) {
  final RelTraitSet traitSet = getCluster().traitSetOf(Convention.NONE);
  return new LogicalMatch(getCluster(), traitSet,
      input,
      rowType,
      pattern, strictStart, strictEnd, patternDefinitions, measures,
      after, subsets, allRows, partitionKeys, orderKeys,
      interval);
}
 
Example #3
Source File: RelMdCollation.java    From calcite with Apache License 2.0 5 votes vote down vote up
public ImmutableList<RelCollation> collations(Match rel,
    RelMetadataQuery mq) {
  return ImmutableList.copyOf(
      match(mq, rel.getInput(), rel.getRowType(), rel.getPattern(),
          rel.isStrictStart(), rel.isStrictEnd(),
          rel.getPatternDefinitions(), rel.getMeasures(), rel.getAfter(),
          rel.getSubsets(), rel.isAllRows(), rel.getPartitionKeys(),
          rel.getOrderKeys(), rel.getInterval()));
}
 
Example #4
Source File: RelMdNodeTypes.java    From calcite with Apache License 2.0 4 votes vote down vote up
public Multimap<Class<? extends RelNode>, RelNode> getNodeTypes(Match rel,
    RelMetadataQuery mq) {
  return getNodeTypes(rel, Match.class, mq);
}
 
Example #5
Source File: Nodes.java    From calcite with Apache License 2.0 4 votes vote down vote up
public void visit(Match match) {
  node = new MatchNode(this, match);
}
 
Example #6
Source File: MatchNode.java    From calcite with Apache License 2.0 4 votes vote down vote up
MatchNode(Compiler compiler, Match rel) {
  super(compiler, rel);
}