| Modifier and Type | Method and Description |
|---|---|
Type |
NameReference.getDataType() |
Type |
BoundReference.getDataType() |
Type |
Literal.getDataType() |
default Type |
Predicate.getDataType() |
Type |
Expression.getDataType() |
| Constructor and Description |
|---|
BoundReference(int ordinal,
Type type) |
Literal(T value,
Type type) |
| Modifier and Type | Class and Description |
|---|---|
static class |
Type.NestedType
The type of a schema for nested fields.
|
static class |
Type.PrimitiveType
The type of a schema for primitive fields.
|
static class |
Types.ArrayType
Array nested type.
|
static class |
Types.BinaryType
Binary primitive type.
|
static class |
Types.BooleanType
Boolean primitive type.
|
static class |
Types.DateType
Date primitive type.
|
static class |
Types.DecimalType
Decimal primitive type.
|
static class |
Types.DoubleType
Double primitive type.
|
static class |
Types.FixedType
Fixed primitive type.
|
static class |
Types.FloatType
Float primitive type.
|
static class |
Types.IntType
Integer primitive type.
|
static class |
Types.LongType
Long primitive type.
|
static class |
Types.MapType
Map nested type.
|
static class |
Types.RecordType
Record nested type.
|
static class |
Types.StringType
String primitive type.
|
static class |
Types.TimestampType
Time primitive type.
|
static class |
Types.TimeType
Time primitive type.
|
static class |
Types.UUIDType
UUID primitive type.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
Types.ArrayType.elementType() |
Type |
Types.RecordType.fieldType(String name) |
Type |
Types.ArrayType.fieldType(String name) |
Type |
Types.MapType.fieldType(String name) |
abstract Type |
Type.NestedType.fieldType(String name) |
Type |
InternalSchema.findType(int id)
Returns the
Type of a sub-field identified by the field id. |
Type |
InternalSchema.findType(String name)
Returns the
Type of a sub-field identified by the field name. |
Type |
Types.MapType.keyType() |
Type |
InternalSchemaBuilder.refreshNewId(Type type,
AtomicInteger nextId)
Assigns new ids for all fields in a Type, based on initial id.
|
Type |
Types.Field.type() |
Type |
Types.MapType.valueType() |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,Types.Field> |
InternalSchemaBuilder.buildIdToField(Type type)
Build a mapping from id to field for a internal Type.
|
Map<Integer,String> |
InternalSchemaBuilder.buildIdToName(Type type)
Build a mapping from id to full field name for a internal Type.
|
Map<String,Integer> |
InternalSchemaBuilder.buildNameToId(Type type)
Build a mapping from full field name to id for a internal Type.
|
static Object |
Type.fromPartitionString(String partitionValue,
Type type) |
static Types.Field |
Types.Field.get(int id,
boolean isOptional,
String name,
Type type) |
static Types.Field |
Types.Field.get(int id,
boolean isOptional,
String name,
Type type,
String doc) |
static Types.Field |
Types.Field.get(int id,
boolean isOptional,
String name,
Type type,
String doc,
Object defaultValue) |
static Types.ArrayType |
Types.ArrayType.get(int elementId,
boolean isOptional,
Type elementType) |
static Types.MapType |
Types.MapType.get(int keyId,
int valueId,
Type keyType,
Type valueType) |
static Types.MapType |
Types.MapType.get(int keyId,
int valueId,
Type keyType,
Type valueType,
boolean isOptional) |
static Types.Field |
Types.Field.get(int id,
String name,
Type type) |
Type |
InternalSchemaBuilder.refreshNewId(Type type,
AtomicInteger nextId)
Assigns new ids for all fields in a Type, based on initial id.
|
<T> T |
InternalSchemaBuilder.visit(Type type,
InternalSchemaVisitor<T> visitor) |
| Modifier and Type | Method and Description |
|---|---|
Type |
TableChanges.ColumnAddChange.applyAdd(Types.Field originalField,
Type type) |
Type |
TableChanges.ColumnDeleteChange.applyDelete(int id,
Type type) |
Type |
TableChanges.ColumnUpdateChange.applyUpdates(Types.Field oldField,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
TableChanges.ColumnAddChange |
TableChanges.ColumnAddChange.addColumns(String parent,
String name,
Type type,
String doc) |
TableChanges.ColumnAddChange |
TableChanges.ColumnAddChange.addColumns(String name,
Type type,
String doc) |
Type |
TableChanges.ColumnAddChange.applyAdd(Types.Field originalField,
Type type) |
InternalSchema |
InternalSchemaChangeApplier.applyAddChange(String colName,
Type colType,
String doc,
String position,
TableChange.ColumnPositionChange.ColumnPositionType positionType)
Add columns to table.
|
InternalSchema |
InternalSchemaChangeApplier.applyColumnTypeChange(String colName,
Type newType)
Update col type for hudi table.
|
Type |
TableChanges.ColumnDeleteChange.applyDelete(int id,
Type type) |
Type |
TableChanges.ColumnUpdateChange.applyUpdates(Types.Field oldField,
Type type) |
TableChanges.ColumnUpdateChange |
TableChanges.ColumnUpdateChange.updateColumnType(String name,
Type newType)
Update a column in the schema to a new type.
|
| Modifier and Type | Method and Description |
|---|---|
static Type |
AvroInternalSchemaConverter.buildTypeFromAvroSchema(org.apache.avro.Schema schema)
Build hudi type from avro schema.
|
static Type |
AvroInternalSchemaConverter.convertToField(org.apache.avro.Schema schema)
Convert an avro schema into internal type.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.Schema |
AvroInternalSchemaConverter.buildAvroSchemaFromType(Type type,
String recordName)
Converts hudi type into an Avro Schema.
|
static org.apache.avro.Schema |
AvroInternalSchemaConverter.convert(Type type,
String name)
Convert internal type to avro Schema.
|
| Modifier and Type | Method and Description |
|---|---|
static Type |
SchemaChangeUtils.applyTableChange2Type(Type type,
TableChanges.ColumnAddChange adds)
Apply all the DDL add operations to Type to produce a new internalSchema.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<Integer,Pair<Type,Type>> |
InternalSchemaUtils.collectTypeChangedCols(InternalSchema schema,
InternalSchema oldSchema)
Collect all type changed cols to build a colPosition -> (newColType, oldColType) map.
|
static Map<Integer,Pair<Type,Type>> |
InternalSchemaUtils.collectTypeChangedCols(InternalSchema schema,
InternalSchema oldSchema)
Collect all type changed cols to build a colPosition -> (newColType, oldColType) map.
|
| Modifier and Type | Method and Description |
|---|---|
static Type |
SchemaChangeUtils.applyTableChange2Type(Type type,
TableChanges.ColumnAddChange adds)
Apply all the DDL add operations to Type to produce a new internalSchema.
|
static boolean |
SchemaChangeUtils.isTypeUpdateAllow(Type src,
Type dsr)
Whether to allow the column type to be updated.
|
static boolean |
SchemaChangeUtils.shouldPromoteType(Type src,
Type dsr) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.