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 SummaryConstructors Modifier Constructor Description protectedFixupTypes(Schema referenceSchema)
 - 
Method SummaryAll 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- 
FixupTypesprotected FixupTypes(Schema referenceSchema) 
 
- 
 - 
Method Detail- 
schemapublic Type schema(Schema schema, java.util.function.Supplier<Type> future) - Overrides:
- schemain class- TypeUtil.CustomOrderSchemaVisitor<Type>
 
 - 
structpublic Type struct(Types.StructType struct, java.lang.Iterable<Type> fieldTypes) - Overrides:
- structin class- TypeUtil.CustomOrderSchemaVisitor<Type>
 
 - 
fieldpublic Type field(Types.NestedField field, java.util.function.Supplier<Type> future) - Overrides:
- fieldin class- TypeUtil.CustomOrderSchemaVisitor<Type>
 
 - 
listpublic Type list(Types.ListType list, java.util.function.Supplier<Type> elementTypeFuture) - Overrides:
- listin class- TypeUtil.CustomOrderSchemaVisitor<Type>
 
 - 
mappublic Type map(Types.MapType map, java.util.function.Supplier<Type> keyTypeFuture, java.util.function.Supplier<Type> valueTypeFuture) - Overrides:
- mapin class- TypeUtil.CustomOrderSchemaVisitor<Type>
 
 - 
primitivepublic Type primitive(Type.PrimitiveType primitive) - Overrides:
- primitivein class- TypeUtil.CustomOrderSchemaVisitor<Type>
 
 - 
fixupPrimitiveprotected abstract boolean fixupPrimitive(Type.PrimitiveType type, Type source) 
 
- 
 
-