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 protectedFixupTypes(Schema referenceSchema)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Typefield(Types.NestedField field, java.util.function.Supplier<Type> future)protected abstract booleanfixupPrimitive(Type.PrimitiveType type, Type source)Typelist(Types.ListType list, java.util.function.Supplier<Type> elementTypeFuture)Typemap(Types.MapType map, java.util.function.Supplier<Type> keyTypeFuture, java.util.function.Supplier<Type> valueTypeFuture)Typeprimitive(Type.PrimitiveType primitive)Typeschema(Schema schema, java.util.function.Supplier<Type> future)Typestruct(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:
schemain classTypeUtil.CustomOrderSchemaVisitor<Type>
-
struct
public Type struct(Types.StructType struct, java.lang.Iterable<Type> fieldTypes)
- Overrides:
structin classTypeUtil.CustomOrderSchemaVisitor<Type>
-
field
public Type field(Types.NestedField field, java.util.function.Supplier<Type> future)
- Overrides:
fieldin classTypeUtil.CustomOrderSchemaVisitor<Type>
-
list
public Type list(Types.ListType list, java.util.function.Supplier<Type> elementTypeFuture)
- Overrides:
listin classTypeUtil.CustomOrderSchemaVisitor<Type>
-
map
public Type map(Types.MapType map, java.util.function.Supplier<Type> keyTypeFuture, java.util.function.Supplier<Type> valueTypeFuture)
- Overrides:
mapin classTypeUtil.CustomOrderSchemaVisitor<Type>
-
primitive
public Type primitive(Type.PrimitiveType primitive)
- Overrides:
primitivein classTypeUtil.CustomOrderSchemaVisitor<Type>
-
fixupPrimitive
protected abstract boolean fixupPrimitive(Type.PrimitiveType type, Type source)
-
-