public class AvroUtils extends Object
| Constructor and Description |
|---|
AvroUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCompatibility(org.apache.avro.Schema newSchema,
List<org.apache.avro.Schema> previousSchemas)
Check the compatibility between the new schema and the specified schemas
|
static org.apache.avro.Schema |
parseSchema(File file) |
static org.apache.avro.Schema |
parseSchema(String schemaString) |
public static void checkCompatibility(org.apache.avro.Schema newSchema,
List<org.apache.avro.Schema> previousSchemas)
throws org.apache.avro.SchemaValidationException
newSchema - The new schemapreviousSchemas - Full schema history in chronological orderorg.apache.avro.SchemaValidationExceptionpublic static org.apache.avro.Schema parseSchema(File file) throws IOException
IOExceptionpublic static org.apache.avro.Schema parseSchema(String schemaString)
Copyright © 2020. All rights reserved.