Class Hoist.Variable

java.lang.Object
org.apache.calcite.tools.Hoist.Variable
Enclosing class:
Hoist

public static class Hoist.Variable extends Object
Variable.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Zero-based position within the SQL text after end of node.
    final SqlNode
    Parse tree node (typically a literal).
    final int
    Zero-based ordinal in statement.
    final String
    Original SQL of whole statement.
    final int
    Zero-based position within the SQL text of start of node.
  • Method Summary

    Modifier and Type
    Method
    Description
    sql()
    Returns SQL text of the region of the statement covered by this Variable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • originalSql

      public final String originalSql
      Original SQL of whole statement.
    • ordinal

      public final int ordinal
      Zero-based ordinal in statement.
    • node

      public final SqlNode node
      Parse tree node (typically a literal).
    • start

      public final int start
      Zero-based position within the SQL text of start of node.
    • end

      public final int end
      Zero-based position within the SQL text after end of node.
  • Method Details

    • sql

      public String sql()
      Returns SQL text of the region of the statement covered by this Variable.