public class ExtendedSqlCollectionTypeNameSpec
extends org.apache.calcite.sql.SqlCollectionTypeNameSpec
SqlCollectionTypeNameSpec
, we support NULL or NOT NULL suffix for the element type name(this
syntax does not belong to standard SQL).Constructor and 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 . |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rel.type.RelDataType |
deriveType(org.apache.calcite.sql.validate.SqlValidator validator) |
boolean |
elementNullable() |
boolean |
equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec spec,
org.apache.calcite.util.Litmus litmus) |
org.apache.calcite.sql.type.SqlTypeName |
getCollectionTypeName() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
boolean |
unparseAsStandard() |
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)
ExtendedSqlCollectionTypeNameSpec
.elementTypeName
- element type name specificationelementNullable
- flag indicating if the element type is nullablecollectionTypeName
- collection type nameunparseAsStandard
- if we should unparse the collection type as standard SQL stylepos
- the parser positionpublic boolean elementNullable()
public org.apache.calcite.sql.type.SqlTypeName getCollectionTypeName()
public boolean unparseAsStandard()
public org.apache.calcite.rel.type.RelDataType deriveType(org.apache.calcite.sql.validate.SqlValidator validator)
deriveType
in class org.apache.calcite.sql.SqlCollectionTypeNameSpec
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
unparse
in class org.apache.calcite.sql.SqlCollectionTypeNameSpec
public boolean equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec spec, org.apache.calcite.util.Litmus litmus)
equalsDeep
in class org.apache.calcite.sql.SqlCollectionTypeNameSpec
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.