Package org.apache.iceberg.avro
Class AvroWithPartnerByStructureVisitor<P,T>
java.lang.Object
org.apache.iceberg.avro.AvroWithPartnerByStructureVisitor<P,T>
- Type Parameters:
P
- Partner type.T
- Return T.
- Direct Known Subclasses:
AvroWithFlinkSchemaVisitor
,AvroWithSparkSchemaVisitor
,AvroWithTypeByStructureVisitor
A abstract avro schema visitor with partner type. The visitor rely on the structure matching
exactly and are guaranteed that because both schemas are derived from the same Iceberg schema.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract P
arrayElementType
(P arrayType) fieldNameAndType
(P structType, int pos) protected abstract boolean
protected abstract boolean
isStringType
(P type) protected abstract P
mapKeyType
(P mapType) protected abstract P
mapValueType
(P mapType) protected abstract P
nullType()
static <P,
T> T visit
(P partner, org.apache.avro.Schema schema, AvroWithPartnerByStructureVisitor<P, T> visitor)
-
Constructor Details
-
AvroWithPartnerByStructureVisitor
public AvroWithPartnerByStructureVisitor()
-
-
Method Details
-
visit
public static <P,T> T visit(P partner, org.apache.avro.Schema schema, AvroWithPartnerByStructureVisitor<P, T> visitor) -
isMapType
-
isStringType
-
arrayElementType
-
mapKeyType
-
mapValueType
-
fieldNameAndType
-
nullType
-
record
-
union
-
array
-
map
-
map
-
primitive
-