Tabnine Logo
SqlParserUtil$ToTreeListItem.getPos
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: Qihoo360/Quicksql

private static SqlParserPos pos(PrecedenceClimbingParser.Token token) {
 switch (token.type) {
 case ATOM:
  return ((SqlNode) token.o).getParserPosition();
 case CALL:
  final PrecedenceClimbingParser.Call call =
    (PrecedenceClimbingParser.Call) token;
  SqlParserPos pos = ((ToTreeListItem) call.op.o).pos;
  for (PrecedenceClimbingParser.Token arg : call.args) {
   pos = pos.plus(pos(arg));
  }
  return pos;
 default:
  return ((ToTreeListItem) token.o).getPos();
 }
}
origin: org.apache.calcite/calcite-core

private static SqlParserPos pos(PrecedenceClimbingParser.Token token) {
 switch (token.type) {
 case ATOM:
  return ((SqlNode) token.o).getParserPosition();
 case CALL:
  final PrecedenceClimbingParser.Call call =
    (PrecedenceClimbingParser.Call) token;
  SqlParserPos pos = ((ToTreeListItem) call.op.o).pos;
  for (PrecedenceClimbingParser.Token arg : call.args) {
   pos = pos.plus(pos(arg));
  }
  return pos;
 default:
  return ((ToTreeListItem) token.o).getPos();
 }
}
org.apache.calcite.sql.parserSqlParserUtil$ToTreeListItemgetPos

Popular methods of SqlParserUtil$ToTreeListItem

  • <init>
  • getOperator

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
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