Class SqlTimestampLtzTypeNameSpec

java.lang.Object
org.apache.calcite.sql.SqlTypeNameSpec
org.apache.calcite.sql.SqlBasicTypeNameSpec
org.apache.flink.sql.parser.type.SqlTimestampLtzTypeNameSpec

@Internal public final class SqlTimestampLtzTypeNameSpec extends org.apache.calcite.sql.SqlBasicTypeNameSpec
Represents type TIMESTAMP_LTZ(int) which is a synonym of type TIMESTAMP(int) WITH LOCAL TIME ZONE.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqlTimestampLtzTypeNameSpec(String typeAlias, org.apache.calcite.sql.type.SqlTypeName typeName, int precision, org.apache.calcite.sql.parser.SqlParserPos pos)
    Creates a SqlTimestampLtzTypeNameSpec instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec node, org.apache.calcite.util.Litmus litmus)
     
    void
    unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
     

    Methods inherited from class org.apache.calcite.sql.SqlBasicTypeNameSpec

    deriveType, getCharSetName, getPrecision, getScale

    Methods inherited from class org.apache.calcite.sql.SqlTypeNameSpec

    getParserPos, getTypeName

    Methods inherited from class java.lang.Object

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

    • SqlTimestampLtzTypeNameSpec

      public SqlTimestampLtzTypeNameSpec(String typeAlias, org.apache.calcite.sql.type.SqlTypeName typeName, int precision, org.apache.calcite.sql.parser.SqlParserPos pos)
      Creates a SqlTimestampLtzTypeNameSpec instance.
      Parameters:
      typeAlias - Type alias of the alien system
      typeName - Type name the typeAlias implies as the (standard) basic type name
      precision - Type Precision
      pos - The parser position
  • Method Details

    • unparse

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

      public boolean equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec node, org.apache.calcite.util.Litmus litmus)
      Overrides:
      equalsDeep in class org.apache.calcite.sql.SqlBasicTypeNameSpec