org.apache.calcite.rel.logical.LogicalMinus Java Examples

The following examples show how to use org.apache.calcite.rel.logical.LogicalMinus. 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: EnumerableMinusRule.java    From calcite with Apache License 2.0 5 votes vote down vote up
public RelNode convert(RelNode rel) {
  final LogicalMinus minus = (LogicalMinus) rel;
  final EnumerableConvention out = EnumerableConvention.INSTANCE;
  final RelTraitSet traitSet =
      rel.getTraitSet().replace(
          EnumerableConvention.INSTANCE);
  return new EnumerableMinus(rel.getCluster(), traitSet,
      convertList(minus.getInputs(), out), minus.all);
}
 
Example #2
Source File: RelFactories.java    From Bats with Apache License 2.0 5 votes vote down vote up
public RelNode createSetOp(SqlKind kind, List<RelNode> inputs,
    boolean all) {
  switch (kind) {
  case UNION:
    return LogicalUnion.create(inputs, all);
  case EXCEPT:
    return LogicalMinus.create(inputs, all);
  case INTERSECT:
    return LogicalIntersect.create(inputs, all);
  default:
    throw new AssertionError("not a set op: " + kind);
  }
}
 
Example #3
Source File: RelFactories.java    From calcite with Apache License 2.0 5 votes vote down vote up
public RelNode createSetOp(SqlKind kind, List<RelNode> inputs,
    boolean all) {
  switch (kind) {
  case UNION:
    return LogicalUnion.create(inputs, all);
  case EXCEPT:
    return LogicalMinus.create(inputs, all);
  case INTERSECT:
    return LogicalIntersect.create(inputs, all);
  default:
    throw new AssertionError("not a set op: " + kind);
  }
}
 
Example #4
Source File: CopyWithCluster.java    From dremio-oss with Apache License 2.0 5 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
  return new LogicalMinus(
    cluster,
    copyOf(minus.getTraitSet()),
    visitAll(minus.getInputs()),
    minus.all
  );
}
 
Example #5
Source File: RoutingShuttle.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
  return visit((RelNode) minus);
}
 
Example #6
Source File: RelStructuredTypeFlattener.java    From calcite with Apache License 2.0 4 votes vote down vote up
public void rewriteRel(LogicalMinus rel) {
  rewriteGeneric(rel);
}
 
Example #7
Source File: EnumerableMinusRule.java    From calcite with Apache License 2.0 4 votes vote down vote up
EnumerableMinusRule() {
  super(LogicalMinus.class, Convention.NONE, EnumerableConvention.INSTANCE,
      "EnumerableMinusRule");
}
 
Example #8
Source File: CalciteMaterializer.java    From calcite with Apache License 2.0 4 votes vote down vote up
public RelNode visit(LogicalMinus minus) {
  return minus;
}
 
Example #9
Source File: RelShuttleImpl.java    From calcite with Apache License 2.0 4 votes vote down vote up
public RelNode visit(LogicalMinus minus) {
  return visitChildren(minus);
}
 
Example #10
Source File: RelHomogeneousShuttle.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public RelNode visit(LogicalMinus minus) {
  return visit((RelNode) minus);
}
 
Example #11
Source File: SubQueryDecorrelator.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
	checkCorConditionOfSetOpInputs(minus);
	return super.visit(minus);
}
 
Example #12
Source File: MycatSqlPlanner.java    From Mycat2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
    hasSetOp = true;
    return super.visit(minus);
}
 
Example #13
Source File: SubQueryDecorrelator.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
	checkCorConditionOfSetOpInputs(minus);
	return super.visit(minus);
}
 
Example #14
Source File: JoinUtils.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
  return minus;
}
 
Example #15
Source File: FindLimit0Visitor.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode visit(LogicalMinus minus) {
  return minus;
}
 
Example #16
Source File: RelStructuredTypeFlattener.java    From Bats with Apache License 2.0 4 votes vote down vote up
public void rewriteRel(LogicalMinus rel) {
    rewriteGeneric(rel);
}
 
Example #17
Source File: RelShuttleImpl.java    From Bats with Apache License 2.0 4 votes vote down vote up
public RelNode visit(LogicalMinus minus) {
  return visitChildren(minus);
}
 
Example #18
Source File: RelHomogeneousShuttle.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public RelNode visit(LogicalMinus minus) {
  return visit((RelNode) minus);
}
 
Example #19
Source File: RelShuttle.java    From Bats with Apache License 2.0 votes vote down vote up
RelNode visit(LogicalMinus minus); 
Example #20
Source File: RelShuttle.java    From calcite with Apache License 2.0 votes vote down vote up
RelNode visit(LogicalMinus minus);