public class AvroSchemaValidator extends Object implements SchemaValidator
| Constructor and Description |
|---|
AvroSchemaValidator() |
| Modifier and Type | Method and Description |
|---|---|
Compatibility |
compatibilityCheck(String source,
String other)
Checks for compatibility between two schemas @see Compatibility class for types
This method may not be supported for certain formats
|
String |
getFormat() |
boolean |
isValid(String definition)
Verifies if a definition is a valid schema
|
Schema |
match(List<Schema> schemas,
String definition)
Return the Schema that is represented by the definition.
|
public boolean isValid(String definition)
SchemaValidatorisValid in interface SchemaValidatordefinition - - The textual representation of the schema filepublic Compatibility compatibilityCheck(String source, String other)
SchemaValidatorcompatibilityCheck in interface SchemaValidatorsource - - The textual representation of the schema to testedother - - The textual representation of the other schema to testedpublic Schema match(List<Schema> schemas, String definition)
SchemaValidatormatch in interface SchemaValidatorschemas - List of schemas to be testeddefinition - Textual representation of the schemapublic String getFormat()
getFormat in interface SchemaValidatorCopyright © 2018 Pivotal Software, Inc.. All rights reserved.