Class ExtendedSqlCollectionTypeNameSpec

java.lang.Object
org.apache.calcite.sql.SqlTypeNameSpec
org.apache.calcite.sql.SqlCollectionTypeNameSpec
org.apache.flink.sql.parser.type.ExtendedSqlCollectionTypeNameSpec

public class ExtendedSqlCollectionTypeNameSpec extends org.apache.calcite.sql.SqlCollectionTypeNameSpec
A extended sql type name specification of collection type, different with SqlCollectionTypeNameSpec, we support NULL or NOT NULL suffix for the element type name(this syntax does not belong to standard SQL).
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedSqlCollectionTypeNameSpec(org.apache.calcite.sql.SqlTypeNameSpec elementTypeName, boolean elementNullable, org.apache.calcite.sql.type.SqlTypeName collectionTypeName, boolean unparseAsStandard, org.apache.calcite.sql.parser.SqlParserPos pos)
    Creates a ExtendedSqlCollectionTypeNameSpec.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.rel.type.RelDataType
    deriveType(org.apache.calcite.sql.validate.SqlValidator validator)
     
    boolean
     
    boolean
    equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec spec, org.apache.calcite.util.Litmus litmus)
     
    org.apache.calcite.sql.type.SqlTypeName
     
    void
    unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
     
    boolean
     

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

    getElementTypeName

    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

    • ExtendedSqlCollectionTypeNameSpec

      public ExtendedSqlCollectionTypeNameSpec(org.apache.calcite.sql.SqlTypeNameSpec elementTypeName, boolean elementNullable, org.apache.calcite.sql.type.SqlTypeName collectionTypeName, boolean unparseAsStandard, org.apache.calcite.sql.parser.SqlParserPos pos)
      Creates a ExtendedSqlCollectionTypeNameSpec.
      Parameters:
      elementTypeName - element type name specification
      elementNullable - flag indicating if the element type is nullable
      collectionTypeName - collection type name
      unparseAsStandard - if we should unparse the collection type as standard SQL style
      pos - the parser position
  • Method Details

    • elementNullable

      public boolean elementNullable()
    • getCollectionTypeName

      public org.apache.calcite.sql.type.SqlTypeName getCollectionTypeName()
    • unparseAsStandard

      public boolean unparseAsStandard()
    • deriveType

      public org.apache.calcite.rel.type.RelDataType deriveType(org.apache.calcite.sql.validate.SqlValidator validator)
      Overrides:
      deriveType in class org.apache.calcite.sql.SqlCollectionTypeNameSpec
    • unparse

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

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