congrats Icon
New! Announcing our next generation AI code completions
Read here
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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
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

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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