Class 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.
    • Constructor Detail

      • 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 Detail

      • 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