congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SqlParserUtil$ToTreeListItem
Code IndexAdd Tabnine to your IDE (free)

How to use
SqlParserUtil$ToTreeListItem
in
org.apache.calcite.sql.parser

Best Java code snippets using org.apache.calcite.sql.parser.SqlParserUtil$ToTreeListItem (Showing top 20 results out of 315)

origin: uber/AthenaX

 final public 
void Expression2b(ExprContext exprContext, List<Object> list) throws ParseException {SqlNode e;
  SqlOperator op;
  label_25:
  while (true) {
   if (jj_2_243(2)) {
    ;
   } else {
    break label_25;
   }
   op = PrefixRowOperator();
checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
  }
  e = Expression3(exprContext);
list.add(e);
}

origin: com.alibaba.blink/flink-sql-parser

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.add(e);
} else if (jj_2_305(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_301(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_307(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: org.apache.calcite/calcite-core

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list3);
      list3.clear();
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_258(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_264(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: Qihoo360/Quicksql

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.add(e);
} else if (jj_2_270(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_266(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_272(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: qubole/quark

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.add(e);
} else if (jj_2_255(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_252(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_257(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: hortonworks/streamline

      list.add(new SqlParserUtil.ToTreeListItem(op, pos));
      pos = pos.plus(getPos());
      list.add(new SqlParserUtil.ToTreeListItem(op, pos));
      list.add(e);
} else if (jj_2_216(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, pos));
      list.addAll(list2);
 if (jj_2_213(2)) {
        pos = getPos();
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, pos));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_218(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: org.apache.drill.exec/drill-java-exec

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.add(e);
} else if (jj_2_300(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_296(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_302(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: hortonworks/streamline

      list.add(new SqlParserUtil.ToTreeListItem(op, pos));
      pos = pos.plus(getPos());
      list.add(new SqlParserUtil.ToTreeListItem(op, pos));
      list.add(e);
} else if (jj_2_216(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, pos));
      list.addAll(list2);
 if (jj_2_213(2)) {
        pos = getPos();
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, pos));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_218(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: dremio/dremio-oss

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.add(e);
} else if (jj_2_395(2)) {
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_391(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_397(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: org.apache.calcite/calcite-core

      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      s.add(nodeList);
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list3);
      list3.clear();
      list.add(new SqlParserUtil.ToTreeListItem(op, s.pos()));
      list.addAll(list2);
 if (jj_2_255(2)) {
        s.clear().add(this);
        list.add(
          new SqlParserUtil.ToTreeListItem(
            SqlStdOperatorTable.ESCAPE, s.pos()));
        list.add(e);
 op = BinaryRowOperator();
      checkNonQueryExpression(exprContext);
      list.add(new SqlParserUtil.ToTreeListItem(op, getPos()));
 Expression2b(ExprContext.ACCEPT_SUB_QUERY, list);
} else if (jj_2_261(2)) {
 jj_consume_token(RBRACKET);
      list.add(
        new SqlParserUtil.ToTreeListItem(
          SqlStdOperatorTable.ITEM, getPos()));
      list.add(e);
origin: com.alibaba.blink/flink-sql-parser

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: org.apache.drill.exec/drill-java-exec

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: org.apache.calcite/calcite-core

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: hortonworks/streamline

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: qubole/quark

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: hortonworks/streamline

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: org.apache.calcite/calcite-core

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: dremio/dremio-oss

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: Qihoo360/Quicksql

   checkQueryExpression(exprContext);
e = LeafQueryOrExpr(ExprContext.ACCEPT_QUERY);
   list.add(new SqlParserUtil.ToTreeListItem(op, pos));
   list.add(e);
origin: org.apache.calcite/calcite-core

if (o instanceof ToTreeListItem) {
 final ToTreeListItem item = (ToTreeListItem) o;
 final SqlOperator op = item.getOperator();
 if (op instanceof SqlPrefixOperator) {
  builder.prefix(item, op.getLeftPrec());
org.apache.calcite.sql.parserSqlParserUtil$ToTreeListItem

Javadoc

Class that holds a SqlOperator and a SqlParserPos. Used by SqlSpecialOperator#reduceExpr and the parser to associate a parsed operator with a parser position.

Most used methods

  • <init>
  • getOperator
  • getPos

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Kernel (java.awt.image)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collectors (java.util.stream)
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now