Package org.apache.calcite.rel.type
Class RelDataTypeFactory.FieldInfoBuilder
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeFactory.Builder
org.apache.calcite.rel.type.RelDataTypeFactory.FieldInfoBuilder
- All Implemented Interfaces:
RelDataTypeFactory.FieldInfo
- Enclosing interface:
RelDataTypeFactory
@Deprecated
public static class RelDataTypeFactory.FieldInfoBuilder
extends RelDataTypeFactory.Builder
implements RelDataTypeFactory.FieldInfo
Deprecated.
Implementation of
RelDataTypeFactory.FieldInfo
that provides a fluid API to build
a list of fields.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(String name, org.apache.calcite.avatica.util.TimeUnit startUnit, int startPrecision, org.apache.calcite.avatica.util.TimeUnit endUnit, int fractionalSecondPrecision) Deprecated.Adds a field with an interval type.add
(String name, RelDataType type) Deprecated.Adds a field with given name and type.add
(String name, SqlTypeName typeName) Deprecated.Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName)
.add
(String name, SqlTypeName typeName, int precision) Deprecated.Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int)
.add
(String name, SqlTypeName typeName, int precision, int scale) Deprecated.Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int, int)
.add
(RelDataTypeField field) Deprecated.Adds a field.addAll
(Iterable<? extends Map.Entry<String, RelDataType>> fields) Deprecated.Adds all fields in a collection.kind
(StructKind kind) Deprecated.nullable
(boolean nullable) Deprecated.Changes the nullability of the last field added.uniquify()
Deprecated.Makes sure that field names are unique.Methods inherited from class org.apache.calcite.rel.type.RelDataTypeFactory.Builder
build, buildDynamic, getFieldCount, getFieldName, getFieldType, nameExists, nullableRecord
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.rel.type.RelDataTypeFactory.FieldInfo
getFieldCount, getFieldName, getFieldType
-
Constructor Details
-
FieldInfoBuilder
Deprecated.
-
-
Method Details
-
add
Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds a field with given name and type.- Overrides:
add
in classRelDataTypeFactory.Builder
-
add
Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName)
.- Overrides:
add
in classRelDataTypeFactory.Builder
-
add
Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int)
.- Overrides:
add
in classRelDataTypeFactory.Builder
-
add
public RelDataTypeFactory.FieldInfoBuilder add(String name, SqlTypeName typeName, int precision, int scale) Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int, int)
.- Overrides:
add
in classRelDataTypeFactory.Builder
-
add
public RelDataTypeFactory.FieldInfoBuilder add(String name, org.apache.calcite.avatica.util.TimeUnit startUnit, int startPrecision, org.apache.calcite.avatica.util.TimeUnit endUnit, int fractionalSecondPrecision) Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds a field with an interval type.- Overrides:
add
in classRelDataTypeFactory.Builder
-
nullable
Deprecated.Description copied from class:RelDataTypeFactory.Builder
Changes the nullability of the last field added.- Overrides:
nullable
in classRelDataTypeFactory.Builder
-
add
Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds a field. Field's ordinal is ignored.- Overrides:
add
in classRelDataTypeFactory.Builder
-
addAll
public RelDataTypeFactory.FieldInfoBuilder addAll(Iterable<? extends Map.Entry<String, RelDataType>> fields) Deprecated.Description copied from class:RelDataTypeFactory.Builder
Adds all fields in a collection.- Overrides:
addAll
in classRelDataTypeFactory.Builder
-
kind
Deprecated.- Overrides:
kind
in classRelDataTypeFactory.Builder
-
uniquify
Deprecated.Description copied from class:RelDataTypeFactory.Builder
Makes sure that field names are unique.- Overrides:
uniquify
in classRelDataTypeFactory.Builder
-