Codota Logo
Calc.getTraitSet
Code IndexAdd Codota to your IDE (free)

How to use
getTraitSet
method
in
org.apache.calcite.rel.core.Calc

Best Java code snippets using org.apache.calcite.rel.core.Calc.getTraitSet (Showing top 10 results out of 315)

  • Common ways to obtain Calc
private void myMethod () {
Calc c =
  • Codota IconRelOptRuleCall relOptRuleCall;relOptRuleCall.rel(int1)
  • Smart code suggestions by Codota
}
origin: apache/storm

  @Override
  public RelNode convert(RelNode rel) {
    final Calc calc = (Calc) rel;
    final RelNode input = calc.getInput();

    return new StreamsCalcRel(calc.getCluster(), calc.getTraitSet().replace(StreamsLogicalConvention.INSTANCE),
                 convert(input, input.getTraitSet().replace(StreamsLogicalConvention.INSTANCE)),
                 calc.getProgram());
  }
}
origin: Qihoo360/Quicksql

/**
 * Constructs a CalcRelSplitter.
 *
 * @param calc     Calc to split
 * @param relTypes Array of rel types, e.g. {Java, Fennel}. Must be
 *                 distinct.
 */
CalcRelSplitter(Calc calc, RelBuilder relBuilder, RelType[] relTypes) {
 this.relBuilder = relBuilder;
 for (int i = 0; i < relTypes.length; i++) {
  assert relTypes[i] != null;
  for (int j = 0; j < i; j++) {
   assert relTypes[i] != relTypes[j]
     : "Rel types must be distinct";
  }
 }
 this.program = calc.getProgram();
 this.cluster = calc.getCluster();
 this.traits = calc.getTraitSet();
 this.typeFactory = calc.getCluster().getTypeFactory();
 this.child = calc.getInput();
 this.relTypes = relTypes;
}
origin: org.apache.calcite/calcite-core

/**
 * Constructs a CalcRelSplitter.
 *
 * @param calc     Calc to split
 * @param relTypes Array of rel types, e.g. {Java, Fennel}. Must be
 *                 distinct.
 */
CalcRelSplitter(Calc calc, RelBuilder relBuilder, RelType[] relTypes) {
 this.relBuilder = relBuilder;
 for (int i = 0; i < relTypes.length; i++) {
  assert relTypes[i] != null;
  for (int j = 0; j < i; j++) {
   assert relTypes[i] != relTypes[j]
     : "Rel types must be distinct";
  }
 }
 this.program = calc.getProgram();
 this.cluster = calc.getCluster();
 this.traits = calc.getTraitSet();
 this.typeFactory = calc.getCluster().getTypeFactory();
 this.child = calc.getInput();
 this.relTypes = relTypes;
}
origin: org.apache.calcite/calcite-core

 public RelNode convert(RelNode rel) {
  final Calc calc = (Calc) rel;
  // If there's a multiset, let FarragoMultisetSplitter work on it
  // first.
  if (RexMultisetUtil.containsMultiset(calc.getProgram())) {
   return null;
  }
  return new JdbcCalc(rel.getCluster(), rel.getTraitSet().replace(out),
    convert(calc.getInput(), calc.getTraitSet().replace(out)),
    calc.getProgram());
 }
}
origin: Qihoo360/Quicksql

 public RelNode convert(RelNode rel) {
  final Calc calc = (Calc) rel;
  // If there's a multiset, let FarragoMultisetSplitter work on it
  // first.
  if (RexMultisetUtil.containsMultiset(calc.getProgram())) {
   return null;
  }
  return new JdbcCalc(rel.getCluster(), rel.getTraitSet().replace(out),
    convert(calc.getInput(), calc.getTraitSet().replace(out)),
    calc.getProgram());
 }
}
origin: Qihoo360/Quicksql

calc.copy(calc.getTraitSet(), calc.getInput(), builder.getProgram()));
origin: org.apache.calcite/calcite-core

calc.copy(calc.getTraitSet(), calc.getInput(), builder.getProgram()));
origin: org.apache.calcite/calcite-core

final Calc newCalc =
  topCalc.copy(
    topCalc.getTraitSet(),
    bottomCalc.getInput(),
    mergedProgram);
origin: Qihoo360/Quicksql

final Calc newCalc =
  topCalc.copy(
    topCalc.getTraitSet(),
    bottomCalc.getInput(),
    mergedProgram);
origin: qubole/quark

calc.copy(calc.getTraitSet(), newJoinRel, topProgramBuilder.getProgram());
org.apache.calcite.rel.coreCalcgetTraitSet

Popular methods of Calc

  • getInput
  • getProgram
  • getCluster
  • getRowType
  • copy
  • getDigest
  • isValid
  • sole

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now