| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | SchemaCompatibility.ReaderWriter
Reader/writer schema pair that can be used as a key in a hash map. |
| private static class | SchemaCompatibility.ReaderWriterCompatibilityChecker
Determines the compatibility of a reader/writer schema pair. |
| public static class | SchemaCompatibility.SchemaCompatibilityResult
Immutable class representing details about a particular schema pair compatibility check. |
| public static enum | SchemaCompatibility.SchemaCompatibilityType
Identifies the type of a schema compatibility result. |
| public static enum | |
| public static class | SchemaCompatibility.SchemaPairCompatibility
Provides information about the compatibility of a single reader and writer schema pair. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| public static final String | READER_WRITER_COMPATIBLE_MESSAGE
Message to annotate reader/writer schema pairs that are compatible. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| public static SchemaCompatibility. | Returns: a result object identifying any compatibility errors.schema to check. reader, final Schema schema to check. writer)Validates that the provided reader schema can be used to decode avro data written with the provided writer schema. |
| public static Schema. | Returns: the writer field, if any does correspond, or None.Schema of the record where to look for the writer field. writerSchema, final Schema.Reader field to identify the corresponding writer field
of. readerFieldIdentifies the writer field that corresponds to the specified reader field. |
| private static boolean | |
| public static boolean | Returns: whether the names of the named schemas match or not.Named reader schema. reader, final Schema Named writer schema. writer)Tests the equality of two Avro named schemas. |