Package org.apache.iceberg.avro
Class AvroSchemaWithTypeVisitor<T>
- java.lang.Object
-
- org.apache.iceberg.avro.AvroSchemaWithTypeVisitor<T>
-
public abstract class AvroSchemaWithTypeVisitor<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AvroSchemaWithTypeVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
array(Types.ListType iList, org.apache.avro.Schema array, T element)
T
map(Types.MapType iMap, org.apache.avro.Schema map, T value)
T
map(Types.MapType iMap, org.apache.avro.Schema map, T key, T value)
T
primitive(Type.PrimitiveType iPrimitive, org.apache.avro.Schema primitive)
T
record(Types.StructType iStruct, org.apache.avro.Schema record, java.util.List<java.lang.String> names, java.util.List<T> fields)
T
union(Type iType, org.apache.avro.Schema union, java.util.List<T> options)
static <T> T
visit(Schema iSchema, org.apache.avro.Schema schema, AvroSchemaWithTypeVisitor<T> visitor)
static <T> T
visit(Type iType, org.apache.avro.Schema schema, AvroSchemaWithTypeVisitor<T> visitor)
-
-
-
Method Detail
-
visit
public static <T> T visit(Schema iSchema, org.apache.avro.Schema schema, AvroSchemaWithTypeVisitor<T> visitor)
-
visit
public static <T> T visit(Type iType, org.apache.avro.Schema schema, AvroSchemaWithTypeVisitor<T> visitor)
-
record
public T record(Types.StructType iStruct, org.apache.avro.Schema record, java.util.List<java.lang.String> names, java.util.List<T> fields)
-
array
public T array(Types.ListType iList, org.apache.avro.Schema array, T element)
-
map
public T map(Types.MapType iMap, org.apache.avro.Schema map, T key, T value)
-
map
public T map(Types.MapType iMap, org.apache.avro.Schema map, T value)
-
primitive
public T primitive(Type.PrimitiveType iPrimitive, org.apache.avro.Schema primitive)
-
-