public abstract class SchemaWithPartnerVisitor<P,R>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SchemaWithPartnerVisitor.PartnerAccessors<P> |
Constructor and Description |
---|
SchemaWithPartnerVisitor() |
Modifier and Type | Method and 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> 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) |
public static <P,T> T visit(Schema schema, P partner, SchemaWithPartnerVisitor<P,T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors)
public static <P,T> T visit(Type type, P partner, SchemaWithPartnerVisitor<P,T> visitor, SchemaWithPartnerVisitor.PartnerAccessors<P> accessors)
public void beforeField(Types.NestedField field, P partnerField)
public void afterField(Types.NestedField field, P partnerField)
public void beforeListElement(Types.NestedField elementField, P partnerField)
public void afterListElement(Types.NestedField elementField, P partnerField)
public void beforeMapKey(Types.NestedField keyField, P partnerField)
public void afterMapKey(Types.NestedField keyField, P partnerField)
public void beforeMapValue(Types.NestedField valueField, P partnerField)
public void afterMapValue(Types.NestedField valueField, P partnerField)
public R struct(Types.StructType struct, P partner, java.util.List<R> fieldResults)
public R field(Types.NestedField field, P partner, R fieldResult)
public R list(Types.ListType list, P partner, R elementResult)
public R map(Types.MapType map, P partner, R keyResult, R valueResult)
public R primitive(Type.PrimitiveType primitive, P partner)