Package org.apache.iceberg.types
Class FixupTypes
- java.lang.Object
-
- org.apache.iceberg.types.TypeUtil.CustomOrderSchemaVisitor<Type>
-
- org.apache.iceberg.types.FixupTypes
-
public abstract class FixupTypes extends TypeUtil.CustomOrderSchemaVisitor<Type>
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
Constructors Modifier Constructor Description protected
FixupTypes(Schema referenceSchema)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Type
field(Types.NestedField field, java.util.function.Supplier<Type> future)
protected abstract boolean
fixupPrimitive(Type.PrimitiveType type, Type source)
Type
list(Types.ListType list, java.util.function.Supplier<Type> elementTypeFuture)
Type
map(Types.MapType map, java.util.function.Supplier<Type> keyTypeFuture, java.util.function.Supplier<Type> valueTypeFuture)
Type
primitive(Type.PrimitiveType primitive)
Type
schema(Schema schema, java.util.function.Supplier<Type> future)
Type
struct(Types.StructType struct, java.lang.Iterable<Type> fieldTypes)
-
-
-
Constructor Detail
-
FixupTypes
protected FixupTypes(Schema referenceSchema)
-
-
Method Detail
-
schema
public Type schema(Schema schema, java.util.function.Supplier<Type> future)
- Overrides:
schema
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
struct
public Type struct(Types.StructType struct, java.lang.Iterable<Type> fieldTypes)
- Overrides:
struct
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
field
public Type field(Types.NestedField field, java.util.function.Supplier<Type> future)
- Overrides:
field
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
list
public Type list(Types.ListType list, java.util.function.Supplier<Type> elementTypeFuture)
- Overrides:
list
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
map
public Type map(Types.MapType map, java.util.function.Supplier<Type> keyTypeFuture, java.util.function.Supplier<Type> valueTypeFuture)
- Overrides:
map
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
primitive
public Type primitive(Type.PrimitiveType primitive)
- Overrides:
primitive
in classTypeUtil.CustomOrderSchemaVisitor<Type>
-
fixupPrimitive
protected abstract boolean fixupPrimitive(Type.PrimitiveType type, Type source)
-
-