Class SqlTableColumnPosition

  • All Implemented Interfaces:
    Cloneable

    public class SqlTableColumnPosition
    extends org.apache.calcite.sql.SqlCall
    SqlNode to describe table column and its position.
    • Field Summary

      • Fields inherited from class org.apache.calcite.sql.SqlNode

        EMPTY_ARRAY, pos
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlTableColumnPosition​(org.apache.calcite.sql.parser.SqlParserPos pos, SqlTableColumn column, org.apache.calcite.sql.SqlLiteral positionSpec, org.apache.calcite.sql.SqlIdentifier referencedColumn)  
    • Constructor Detail

      • SqlTableColumnPosition

        public SqlTableColumnPosition​(org.apache.calcite.sql.parser.SqlParserPos pos,
                                      SqlTableColumn column,
                                      @Nullable
                                      org.apache.calcite.sql.SqlLiteral positionSpec,
                                      @Nullable
                                      org.apache.calcite.sql.SqlIdentifier referencedColumn)
    • Method Detail

      • isFirstColumn

        public boolean isFirstColumn()
      • isAfterReferencedColumn

        public boolean isAfterReferencedColumn()
      • getPositionSpec

        public org.apache.calcite.sql.SqlLiteral getPositionSpec()
      • getAfterReferencedColumn

        @Nullable
        public org.apache.calcite.sql.SqlIdentifier getAfterReferencedColumn()
      • getOperator

        @Nonnull
        public org.apache.calcite.sql.SqlOperator getOperator()
        Specified by:
        getOperator in class org.apache.calcite.sql.SqlCall
      • getOperandList

        @Nonnull
        public List<org.apache.calcite.sql.SqlNode> getOperandList()
        Specified by:
        getOperandList in class org.apache.calcite.sql.SqlCall
      • unparse

        public void unparse​(org.apache.calcite.sql.SqlWriter writer,
                            int leftPrec,
                            int rightPrec)
        Overrides:
        unparse in class org.apache.calcite.sql.SqlCall