public class UnionByNameVisitor extends SchemaWithPartnerVisitor<java.lang.Integer,java.lang.Boolean>
UpdateSchema
operation.SchemaWithPartnerVisitor.PartnerAccessors<P>
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
field(Types.NestedField field,
java.lang.Integer partnerId,
java.lang.Boolean isFieldMissing) |
java.lang.Boolean |
list(Types.ListType list,
java.lang.Integer partnerId,
java.lang.Boolean isElementMissing) |
java.lang.Boolean |
map(Types.MapType map,
java.lang.Integer partnerId,
java.lang.Boolean isKeyMissing,
java.lang.Boolean isValueMissing) |
java.lang.Boolean |
primitive(Type.PrimitiveType primitive,
java.lang.Integer partnerId) |
java.lang.Boolean |
struct(Types.StructType struct,
java.lang.Integer partnerId,
java.util.List<java.lang.Boolean> missingPositions) |
static void |
visit(UpdateSchema api,
Schema existingSchema,
Schema newSchema)
Adds changes needed to produce a union of two schemas to an
UpdateSchema operation. |
static void |
visit(UpdateSchema api,
Schema existingSchema,
Schema newSchema,
boolean caseSensitive)
Adds changes needed to produce a union of two schemas to an
UpdateSchema operation. |
afterField, afterListElement, afterMapKey, afterMapValue, beforeField, beforeListElement, beforeMapKey, beforeMapValue, schema, visit, visit
public static void visit(UpdateSchema api, Schema existingSchema, Schema newSchema)
UpdateSchema
operation.
Changes are accumulated to evolve the existingSchema into a union with newSchema.
api
- an UpdateSchema for adding changesexistingSchema
- an existing schemanewSchema
- a new schema to compare with the existingpublic static void visit(UpdateSchema api, Schema existingSchema, Schema newSchema, boolean caseSensitive)
UpdateSchema
operation.
Changes are accumulated to evolve the existingSchema into a union with newSchema.
api
- an UpdateSchema for adding changesexistingSchema
- an existing schemacaseSensitive
- when false, the case of schema's fields are ignorednewSchema
- a new schema to compare with the existingpublic java.lang.Boolean struct(Types.StructType struct, java.lang.Integer partnerId, java.util.List<java.lang.Boolean> missingPositions)
struct
in class SchemaWithPartnerVisitor<java.lang.Integer,java.lang.Boolean>
public java.lang.Boolean field(Types.NestedField field, java.lang.Integer partnerId, java.lang.Boolean isFieldMissing)
field
in class SchemaWithPartnerVisitor<java.lang.Integer,java.lang.Boolean>
public java.lang.Boolean list(Types.ListType list, java.lang.Integer partnerId, java.lang.Boolean isElementMissing)
list
in class SchemaWithPartnerVisitor<java.lang.Integer,java.lang.Boolean>
public java.lang.Boolean map(Types.MapType map, java.lang.Integer partnerId, java.lang.Boolean isKeyMissing, java.lang.Boolean isValueMissing)
map
in class SchemaWithPartnerVisitor<java.lang.Integer,java.lang.Boolean>
public java.lang.Boolean primitive(Type.PrimitiveType primitive, java.lang.Integer partnerId)
primitive
in class SchemaWithPartnerVisitor<java.lang.Integer,java.lang.Boolean>