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
Constructors -
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, nullableRecordMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.BuilderAdds a field with given name and type.- Overrides:
addin classRelDataTypeFactory.Builder
-
add
Deprecated.Description copied from class:RelDataTypeFactory.BuilderAdds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName).- Overrides:
addin classRelDataTypeFactory.Builder
-
add
Deprecated.Description copied from class:RelDataTypeFactory.BuilderAdds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int).- Overrides:
addin classRelDataTypeFactory.Builder
-
add
public RelDataTypeFactory.FieldInfoBuilder add(String name, SqlTypeName typeName, int precision, int scale) Deprecated.Description copied from class:RelDataTypeFactory.BuilderAdds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int, int).- Overrides:
addin 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.BuilderAdds a field with an interval type.- Overrides:
addin classRelDataTypeFactory.Builder
-
nullable
Deprecated.Description copied from class:RelDataTypeFactory.BuilderChanges the nullability of the last field added.- Overrides:
nullablein classRelDataTypeFactory.Builder
-
add
Deprecated.Description copied from class:RelDataTypeFactory.BuilderAdds a field. Field's ordinal is ignored.- Overrides:
addin classRelDataTypeFactory.Builder
-
addAll
public RelDataTypeFactory.FieldInfoBuilder addAll(Iterable<? extends Map.Entry<String, RelDataType>> fields) Deprecated.Description copied from class:RelDataTypeFactory.BuilderAdds all fields in a collection.- Overrides:
addAllin classRelDataTypeFactory.Builder
-
kind
Deprecated.- Overrides:
kindin classRelDataTypeFactory.Builder
-
uniquify
Deprecated.Description copied from class:RelDataTypeFactory.BuilderMakes sure that field names are unique.- Overrides:
uniquifyin classRelDataTypeFactory.Builder
-