Package org.apache.iceberg.avro
Class AvroSchemaVisitor<T>
- java.lang.Object
-
- org.apache.iceberg.avro.AvroSchemaVisitor<T>
-
- Direct Known Subclasses:
ApplyNameMapping
,RemoveIds
public abstract class AvroSchemaVisitor<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AvroSchemaVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
array(org.apache.avro.Schema array, T element)
protected java.util.Deque<java.lang.String>
fieldNames()
T
map(org.apache.avro.Schema map, T value)
T
primitive(org.apache.avro.Schema primitive)
T
record(org.apache.avro.Schema record, java.util.List<java.lang.String> names, java.util.List<T> fields)
T
union(org.apache.avro.Schema union, java.util.List<T> options)
static <T> T
visit(org.apache.avro.Schema schema, AvroSchemaVisitor<T> visitor)
-
-
-
Method Detail
-
visit
public static <T> T visit(org.apache.avro.Schema schema, AvroSchemaVisitor<T> visitor)
-
fieldNames
protected java.util.Deque<java.lang.String> fieldNames()
-
record
public T record(org.apache.avro.Schema record, java.util.List<java.lang.String> names, java.util.List<T> fields)
-
primitive
public T primitive(org.apache.avro.Schema primitive)
-
-