public class ExtendedSqlRowTypeNameSpec
extends org.apache.calcite.sql.SqlTypeNameSpec
The difference with SqlRowTypeNameSpec
:
Constructor and Description |
---|
ExtendedSqlRowTypeNameSpec(org.apache.calcite.sql.parser.SqlParserPos pos,
List<org.apache.calcite.sql.SqlIdentifier> fieldNames,
List<org.apache.calcite.sql.SqlDataTypeSpec> fieldTypes,
List<org.apache.calcite.sql.SqlCharStringLiteral> comments,
boolean unparseAsStandard)
Creates a ROW type specification.
|
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rel.type.RelDataType |
deriveType(org.apache.calcite.sql.validate.SqlValidator sqlValidator) |
boolean |
equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec node,
org.apache.calcite.util.Litmus litmus) |
List<org.apache.calcite.sql.SqlCharStringLiteral> |
getComments() |
List<org.apache.calcite.sql.SqlIdentifier> |
getFieldNames() |
List<org.apache.calcite.sql.SqlDataTypeSpec> |
getFieldTypes() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
boolean |
unparseAsStandard() |
public ExtendedSqlRowTypeNameSpec(org.apache.calcite.sql.parser.SqlParserPos pos, List<org.apache.calcite.sql.SqlIdentifier> fieldNames, List<org.apache.calcite.sql.SqlDataTypeSpec> fieldTypes, List<org.apache.calcite.sql.SqlCharStringLiteral> comments, boolean unparseAsStandard)
pos
- parser positionfieldNames
- field namesfieldTypes
- field data typescomments
- field commentsunparseAsStandard
- whether to unparse as standard SQL stylepublic List<org.apache.calcite.sql.SqlIdentifier> getFieldNames()
public List<org.apache.calcite.sql.SqlDataTypeSpec> getFieldTypes()
public List<org.apache.calcite.sql.SqlCharStringLiteral> getComments()
public boolean unparseAsStandard()
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
unparse
in class org.apache.calcite.sql.SqlTypeNameSpec
public boolean equalsDeep(org.apache.calcite.sql.SqlTypeNameSpec node, org.apache.calcite.util.Litmus litmus)
equalsDeep
in class org.apache.calcite.sql.SqlTypeNameSpec
public org.apache.calcite.rel.type.RelDataType deriveType(org.apache.calcite.sql.validate.SqlValidator sqlValidator)
deriveType
in class org.apache.calcite.sql.SqlTypeNameSpec
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.