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)
SchemaValidator
isValid
in interface SchemaValidator
definition
- - The textual representation of the schema filepublic Compatibility compatibilityCheck(String source, String other)
SchemaValidator
compatibilityCheck
in interface SchemaValidator
source
- - The textual representation of the schema to testedother
- - The textual representation of the other schema to testedpublic Schema match(List<Schema> schemas, String definition)
SchemaValidator
match
in interface SchemaValidator
schemas
- List of schemas to be testeddefinition
- Textual representation of the schemapublic String getFormat()
getFormat
in interface SchemaValidator
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.