Codota Logo
SetopNamespace
Code IndexAdd Codota to your IDE (free)

How to use
SetopNamespace
in
org.apache.calcite.sql.validate

Best Java code snippets using org.apache.calcite.sql.validate.SetopNamespace (Showing top 5 results out of 315)

  • Common ways to obtain SetopNamespace
private void myMethod () {
SetopNamespace s =
  • Codota IconSqlValidatorImpl sqlValidatorImpl;SqlCall call;SqlNode enclosingNode;new SetopNamespace(sqlValidatorImpl, call, enclosingNode)
  • Smart code suggestions by Codota
}
origin: apache/flink

/**
 * Creates a namespace for a set operation (<code>UNION</code>, <code>
 * INTERSECT</code>, or <code>EXCEPT</code>). Derived class may override
 * this factory method.
 *
 * @param call          Call to set operation
 * @param enclosingNode Enclosing node
 * @return Set operation namespace
 */
protected SetopNamespace createSetopNamespace(
  SqlCall call,
  SqlNode enclosingNode) {
  return new SetopNamespace(this, call, enclosingNode);
}
origin: org.apache.calcite/calcite-core

@Override public SqlMonotonicity getMonotonicity(String columnName) {
 SqlMonotonicity monotonicity = null;
 int index = getRowType().getFieldNames().indexOf(columnName);
 if (index < 0) {
  return SqlMonotonicity.NOT_MONOTONIC;
 }
 for (SqlNode operand : call.getOperandList()) {
  final SqlValidatorNamespace namespace = validator.getNamespace(operand);
  monotonicity = combine(monotonicity,
    namespace.getMonotonicity(
      namespace.getRowType().getFieldNames().get(index)));
 }
 return monotonicity;
}
origin: Qihoo360/Quicksql

@Override public SqlMonotonicity getMonotonicity(String columnName) {
 SqlMonotonicity monotonicity = null;
 int index = getRowType().getFieldNames().indexOf(columnName);
 if (index < 0) {
  return SqlMonotonicity.NOT_MONOTONIC;
 }
 for (SqlNode operand : call.getOperandList()) {
  final SqlValidatorNamespace namespace = validator.getNamespace(operand);
  monotonicity = combine(monotonicity,
    namespace.getMonotonicity(
      namespace.getRowType().getFieldNames().get(index)));
 }
 return monotonicity;
}
origin: Qihoo360/Quicksql

/**
 * Creates a namespace for a set operation (<code>UNION</code>, <code>
 * INTERSECT</code>, or <code>EXCEPT</code>). Derived class may override
 * this factory method.
 *
 * @param call          Call to set operation
 * @param enclosingNode Enclosing node
 * @return Set operation namespace
 */
protected SetopNamespace createSetopNamespace(
  SqlCall call,
  SqlNode enclosingNode) {
 return new SetopNamespace(this, call, enclosingNode);
}
origin: org.apache.calcite/calcite-core

/**
 * Creates a namespace for a set operation (<code>UNION</code>, <code>
 * INTERSECT</code>, or <code>EXCEPT</code>). Derived class may override
 * this factory method.
 *
 * @param call          Call to set operation
 * @param enclosingNode Enclosing node
 * @return Set operation namespace
 */
protected SetopNamespace createSetopNamespace(
  SqlCall call,
  SqlNode enclosingNode) {
 return new SetopNamespace(this, call, enclosingNode);
}
org.apache.calcite.sql.validateSetopNamespace

Javadoc

Namespace based upon a set operation (UNION, INTERSECT, EXCEPT).

Most used methods

  • <init>
    Creates a SetopNamespace.
  • combine
  • getRowType

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • onCreateOptionsMenu (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Socket (java.net)
    Provides a client-side TCP socket.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • JPanel (javax.swing)
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