public class ApplyNameMapping extends AvroSchemaVisitor<org.apache.avro.Schema>
Methods return null when a schema has no ID and cannot be projected.
Constructor and Description |
---|
ApplyNameMapping(NameMapping nameMapping) |
Modifier and Type | Method and Description |
---|---|
org.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 |
record(org.apache.avro.Schema record,
java.util.List<java.lang.String> names,
java.util.List<org.apache.avro.Schema> fields) |
org.apache.avro.Schema |
union(org.apache.avro.Schema union,
java.util.List<org.apache.avro.Schema> options) |
fieldNames, visit
public ApplyNameMapping(NameMapping nameMapping)
public org.apache.avro.Schema record(org.apache.avro.Schema record, java.util.List<java.lang.String> names, java.util.List<org.apache.avro.Schema> fields)
record
in class AvroSchemaVisitor<org.apache.avro.Schema>
public org.apache.avro.Schema union(org.apache.avro.Schema union, java.util.List<org.apache.avro.Schema> options)
union
in class AvroSchemaVisitor<org.apache.avro.Schema>
public org.apache.avro.Schema array(org.apache.avro.Schema array, org.apache.avro.Schema element)
array
in class AvroSchemaVisitor<org.apache.avro.Schema>
public org.apache.avro.Schema map(org.apache.avro.Schema map, org.apache.avro.Schema value)
map
in class AvroSchemaVisitor<org.apache.avro.Schema>
public org.apache.avro.Schema primitive(org.apache.avro.Schema primitive)
primitive
in class AvroSchemaVisitor<org.apache.avro.Schema>