Package org.apache.iceberg.avro
Class ApplyNameMapping
java.lang.Object
org.apache.iceberg.avro.AvroSchemaVisitor<org.apache.avro.Schema>
org.apache.iceberg.avro.ApplyNameMapping
An Avro Schema visitor to apply a name mapping to add Iceberg field IDs.
Methods return null when a schema has no ID and cannot be projected.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.Schema
array
(org.apache.avro.Schema array, org.apache.avro.Schema element) org.apache.avro.Schema
map
(org.apache.avro.Schema map, org.apache.avro.Schema value) org.apache.avro.Schema
primitive
(org.apache.avro.Schema primitive) org.apache.avro.Schema
org.apache.avro.Schema
Methods inherited from class org.apache.iceberg.avro.AvroSchemaVisitor
fieldNames, visit
-
Constructor Details
-
ApplyNameMapping
-
-
Method Details
-
record
public org.apache.avro.Schema record(org.apache.avro.Schema record, List<String> names, List<org.apache.avro.Schema> fields) - Overrides:
record
in classAvroSchemaVisitor<org.apache.avro.Schema>
-
union
public org.apache.avro.Schema union(org.apache.avro.Schema union, List<org.apache.avro.Schema> options) - Overrides:
union
in classAvroSchemaVisitor<org.apache.avro.Schema>
-
array
public org.apache.avro.Schema array(org.apache.avro.Schema array, org.apache.avro.Schema element) - Overrides:
array
in classAvroSchemaVisitor<org.apache.avro.Schema>
-
map
public org.apache.avro.Schema map(org.apache.avro.Schema map, org.apache.avro.Schema value) - Overrides:
map
in classAvroSchemaVisitor<org.apache.avro.Schema>
-
primitive
public org.apache.avro.Schema primitive(org.apache.avro.Schema primitive) - Overrides:
primitive
in classAvroSchemaVisitor<org.apache.avro.Schema>
-