| Constructor and Description |
|---|
Field(org.apache.calcite.rel.type.RelDataType dataType)
Overloaded constructor for creation of fields
which carry only about dataType and don't represent
named columns.
|
Field(String name,
org.apache.calcite.rel.type.RelDataType dataType) |
Field(String name,
org.apache.calcite.sql.type.SqlTypeName type,
Integer precision,
Integer scale,
org.apache.calcite.avatica.util.TimeUnit startUnit,
org.apache.calcite.avatica.util.TimeUnit endUnit,
Integer fractionalSecondPrecision,
Boolean isNullable,
View.Field keyType,
View.Field valueType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.avatica.util.TimeUnit |
getEndUnit()
Gets the time range end unit of the type qualifier of the interval data
type descriptor of this field (iff interval type).
|
Integer |
getFractionalSecondPrecision()
Gets the fractional second precision of the type qualifier of the interval
data type descriptor of this field (iff interval type).
|
org.apache.calcite.sql.SqlIntervalQualifier |
getIntervalQualifier()
Gets the interval type qualifier of the interval data type descriptor of
this field (iff interval type).
|
Boolean |
getIsNullable()
Gets the nullability of the data type desription of this field.
|
View.Field |
getKeyType()
Gets key type for fields whose type is
SqlTypeName.MAP |
String |
getName()
Gets the name of this field.
|
Integer |
getPrecision()
Gets the precision of the data type descriptor of this field.
|
Integer |
getScale()
Gets the numeric scale of the data type descriptor of this field,
for numeric types.
|
org.apache.calcite.avatica.util.TimeUnit |
getStartUnit()
Gets the time range start unit of the type qualifier of the interval data
type descriptor of this field (iff interval type).
|
org.apache.calcite.sql.type.SqlTypeName |
getType()
Gets the data type of this field.
|
View.Field |
getValueType()
Gets value type for fields whose type is
SqlTypeName.MAP |
public Field(String name, org.apache.calcite.sql.type.SqlTypeName type, Integer precision, Integer scale, org.apache.calcite.avatica.util.TimeUnit startUnit, org.apache.calcite.avatica.util.TimeUnit endUnit, Integer fractionalSecondPrecision, Boolean isNullable, View.Field keyType, View.Field valueType)
public Field(String name, org.apache.calcite.rel.type.RelDataType dataType)
public Field(org.apache.calcite.rel.type.RelDataType dataType)
dataType - field typepublic String getName()
public org.apache.calcite.sql.type.SqlTypeName getType()
public Integer getPrecision()
public Integer getScale()
public org.apache.calcite.sql.SqlIntervalQualifier getIntervalQualifier()
public org.apache.calcite.avatica.util.TimeUnit getStartUnit()
public org.apache.calcite.avatica.util.TimeUnit getEndUnit()
public Integer getFractionalSecondPrecision()
public Boolean getIsNullable()
public View.Field getKeyType()
SqlTypeName.MAPpublic View.Field getValueType()
SqlTypeName.MAPCopyright © 2021 The Apache Software Foundation. All rights reserved.