Package org.apache.iceberg.types
Class FixupTypes
java.lang.Object
org.apache.iceberg.types.TypeUtil.CustomOrderSchemaVisitor<Type>
org.apache.iceberg.types.FixupTypes
This is used to fix primitive types to match a table schema. This uses a reference schema to
override types that were lost in round-trip conversion.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfield
(Types.NestedField field, Supplier<Type> future) protected abstract boolean
fixupPrimitive
(Type.PrimitiveType type, Type source) list
(Types.ListType list, Supplier<Type> elementTypeFuture) primitive
(Type.PrimitiveType primitive) struct
(Types.StructType struct, Iterable<Type> fieldTypes)
-
Constructor Details
-
FixupTypes
-
-
Method Details
-
schema
- Overrides:
schema
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
struct
- Overrides:
struct
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
field
- Overrides:
field
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
list
- Overrides:
list
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
map
- Overrides:
map
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
primitive
- Overrides:
primitive
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
fixupPrimitive
-