public class CheckCompatibility extends TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
field(Types.NestedField readField,
java.util.function.Supplier<java.util.List<java.lang.String>> fieldErrors) |
java.util.List<java.lang.String> |
list(Types.ListType readList,
java.util.function.Supplier<java.util.List<java.lang.String>> elementErrors) |
java.util.List<java.lang.String> |
map(Types.MapType readMap,
java.util.function.Supplier<java.util.List<java.lang.String>> keyErrors,
java.util.function.Supplier<java.util.List<java.lang.String>> valueErrors) |
java.util.List<java.lang.String> |
primitive(Type.PrimitiveType readPrimitive) |
static java.util.List<java.lang.String> |
readCompatibilityErrors(Schema readSchema,
Schema writeSchema)
Returns a list of compatibility errors for reading with the given read schema.
|
java.util.List<java.lang.String> |
schema(Schema readSchema,
java.util.function.Supplier<java.util.List<java.lang.String>> structErrors) |
java.util.List<java.lang.String> |
struct(Types.StructType readStruct,
java.lang.Iterable<java.util.List<java.lang.String>> fieldErrorLists) |
static java.util.List<java.lang.String> |
typeCompatibilityErrors(Schema readSchema,
Schema writeSchema)
Returns a list of compatibility errors for writing with the given write schema.
|
static java.util.List<java.lang.String> |
typeCompatibilityErrors(Schema readSchema,
Schema writeSchema,
boolean checkOrdering)
Returns a list of compatibility errors for writing with the given write schema.
|
static java.util.List<java.lang.String> |
writeCompatibilityErrors(Schema readSchema,
Schema writeSchema)
Returns a list of compatibility errors for writing with the given write schema.
|
static java.util.List<java.lang.String> |
writeCompatibilityErrors(Schema readSchema,
Schema writeSchema,
boolean checkOrdering)
Returns a list of compatibility errors for writing with the given write schema.
|
public static java.util.List<java.lang.String> writeCompatibilityErrors(Schema readSchema, Schema writeSchema)
readSchema
- a read schemawriteSchema
- a write schemapublic static java.util.List<java.lang.String> writeCompatibilityErrors(Schema readSchema, Schema writeSchema, boolean checkOrdering)
readSchema
- a read schemawriteSchema
- a write schemacheckOrdering
- If false, allow input schema to have different ordering than table schemapublic static java.util.List<java.lang.String> typeCompatibilityErrors(Schema readSchema, Schema writeSchema, boolean checkOrdering)
writeCompatibilityErrors(Schema, Schema)
.readSchema
- a read schemawriteSchema
- a write schemacheckOrdering
- If false, allow input schema to have different ordering than table schemapublic static java.util.List<java.lang.String> typeCompatibilityErrors(Schema readSchema, Schema writeSchema)
writeCompatibilityErrors(Schema, Schema)
.readSchema
- a read schemawriteSchema
- a write schemapublic static java.util.List<java.lang.String> readCompatibilityErrors(Schema readSchema, Schema writeSchema)
readSchema
- a read schemawriteSchema
- a write schemapublic java.util.List<java.lang.String> schema(Schema readSchema, java.util.function.Supplier<java.util.List<java.lang.String>> structErrors)
schema
in class TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>
public java.util.List<java.lang.String> struct(Types.StructType readStruct, java.lang.Iterable<java.util.List<java.lang.String>> fieldErrorLists)
struct
in class TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>
public java.util.List<java.lang.String> field(Types.NestedField readField, java.util.function.Supplier<java.util.List<java.lang.String>> fieldErrors)
field
in class TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>
public java.util.List<java.lang.String> list(Types.ListType readList, java.util.function.Supplier<java.util.List<java.lang.String>> elementErrors)
list
in class TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>
public java.util.List<java.lang.String> map(Types.MapType readMap, java.util.function.Supplier<java.util.List<java.lang.String>> keyErrors, java.util.function.Supplier<java.util.List<java.lang.String>> valueErrors)
map
in class TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>
public java.util.List<java.lang.String> primitive(Type.PrimitiveType readPrimitive)
primitive
in class TypeUtil.CustomOrderSchemaVisitor<java.util.List<java.lang.String>>