Package org.apache.iceberg.schema
Class SchemaWithPartnerVisitor<P,R>
- java.lang.Object
-
- org.apache.iceberg.schema.SchemaWithPartnerVisitor<P,R>
-
- Direct Known Subclasses:
UnionByNameVisitor
public abstract class SchemaWithPartnerVisitor<P,R> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SchemaWithPartnerVisitor.PartnerAccessors<P>
-
Constructor Summary
Constructors Constructor Description SchemaWithPartnerVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
R
field(Types.NestedField field, P partner, R fieldResult)
R
list(Types.ListType list, P partner, R elementResult)
R
map(Types.MapType map, P partner, R keyResult, R valueResult)
R
primitive(Type.PrimitiveType primitive, P partner)
R
schema(Schema schema, P partner, R structResult)
R
struct(Types.StructType struct, P partner, java.util.List<R> fieldResults)
static <P,T>
Tvisit(Schema schema, P partner, SchemaWithPartnerVisitor<P,T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors)
static <P,T>
Tvisit(Type type, P partner, SchemaWithPartnerVisitor<P,T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors)
-
-
-
Method Detail
-
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
public void beforeField(Types.NestedField field, P partnerField)
-
afterField
public void afterField(Types.NestedField field, P partnerField)
-
beforeListElement
public void beforeListElement(Types.NestedField elementField, P partnerField)
-
afterListElement
public void afterListElement(Types.NestedField elementField, P partnerField)
-
beforeMapKey
public void beforeMapKey(Types.NestedField keyField, P partnerField)
-
afterMapKey
public void afterMapKey(Types.NestedField keyField, P partnerField)
-
beforeMapValue
public void beforeMapValue(Types.NestedField valueField, P partnerField)
-
afterMapValue
public void afterMapValue(Types.NestedField valueField, P partnerField)
-
struct
public R struct(Types.StructType struct, P partner, java.util.List<R> fieldResults)
-
field
public R field(Types.NestedField field, P partner, R fieldResult)
-
list
public R list(Types.ListType list, P partner, R elementResult)
-
map
public R map(Types.MapType map, P partner, R keyResult, R valueResult)
-
primitive
public R primitive(Type.PrimitiveType primitive, P partner)
-
-