public final class SchemaValidatorBuilder extends Object
A Builder for creating SchemaValidators.
Constructor and Description |
---|
SchemaValidatorBuilder() |
Modifier and Type | Method and Description |
---|---|
SchemaValidatorBuilder |
canBeReadStrategy()
Use a strategy that validates that a schema can be read by existing
schema(s) according to the Avro default schema resolution.
|
SchemaValidatorBuilder |
canReadStrategy()
Use a strategy that validates that a schema can be used to read existing
schema(s) according to the Avro default schema resolution.
|
SchemaValidatorBuilder |
mutualReadStrategy()
Use a strategy that validates that a schema can read existing schema(s),
and vice-versa, according to the Avro default schema resolution.
|
SchemaValidatorBuilder |
strategy(SchemaValidationStrategy strategy) |
SchemaValidator |
validateAll() |
SchemaValidator |
validateLatest() |
public SchemaValidatorBuilder strategy(SchemaValidationStrategy strategy)
public SchemaValidatorBuilder canReadStrategy()
public SchemaValidatorBuilder canBeReadStrategy()
public SchemaValidatorBuilder mutualReadStrategy()
public SchemaValidator validateLatest()
public SchemaValidator validateAll()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.