Package org.apache.iceberg.schema
Class SchemaWithPartnerVisitor<P,R>
java.lang.Object
org.apache.iceberg.schema.SchemaWithPartnerVisitor<P,R>
- Direct Known Subclasses:
UnionByNameVisitor
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterField
(Types.NestedField field, P partnerField) void
afterListElement
(Types.NestedField elementField, P partnerField) void
afterMapKey
(Types.NestedField keyField, P partnerField) void
afterMapValue
(Types.NestedField valueField, P partnerField) void
beforeField
(Types.NestedField field, P partnerField) void
beforeListElement
(Types.NestedField elementField, P partnerField) void
beforeMapKey
(Types.NestedField keyField, P partnerField) void
beforeMapValue
(Types.NestedField valueField, P partnerField) field
(Types.NestedField field, P partner, R fieldResult) list
(Types.ListType list, P partner, R elementResult) map
(Types.MapType map, P partner, R keyResult, R valueResult) primitive
(Type.PrimitiveType primitive, P partner) struct
(Types.StructType struct, P partner, List<R> fieldResults) static <P,
T> T visit
(Schema schema, P partner, SchemaWithPartnerVisitor<P, T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors) static <P,
T> T visit
(Type type, P partner, SchemaWithPartnerVisitor<P, T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors)
-
Constructor Details
-
SchemaWithPartnerVisitor
public SchemaWithPartnerVisitor()
-
-
Method Details
-
visit
public static <P,T> T visit(Schema schema, P partner, SchemaWithPartnerVisitor<P, T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors) -
visit
public static <P,T> T visit(Type type, P partner, SchemaWithPartnerVisitor<P, T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors) -
beforeField
-
afterField
-
beforeListElement
-
afterListElement
-
beforeMapKey
-
afterMapKey
-
beforeMapValue
-
afterMapValue
-
schema
-
struct
-
field
-
list
-
map
-
primitive
-