public static final class AvroSchemaCompatibility.SchemaPairCompatibility extends Object
Note: This class represents a one-way relationship from the reader to the writer schema.
| Constructor and Description |
|---|
SchemaPairCompatibility(AvroSchemaCompatibility.SchemaCompatibilityResult result,
org.apache.avro.Schema reader,
org.apache.avro.Schema writer,
String description)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getDescription()
Gets a human readable description of this validation result.
|
org.apache.avro.Schema |
getReader()
Gets the reader schema that was validated.
|
AvroSchemaCompatibility.SchemaCompatibilityResult |
getResult()
Gets more details about the compatibility, in particular if getType() is
INCOMPATIBLE.
|
AvroSchemaCompatibility.SchemaCompatibilityType |
getType()
Gets the type of this result.
|
org.apache.avro.Schema |
getWriter()
Gets the writer schema that was validated.
|
int |
hashCode() |
String |
toString() |
public SchemaPairCompatibility(AvroSchemaCompatibility.SchemaCompatibilityResult result, org.apache.avro.Schema reader, org.apache.avro.Schema writer, String description)
result - The result of the compatibility check.reader - schema that was validated.writer - schema that was validated.description - of this compatibility result.public AvroSchemaCompatibility.SchemaCompatibilityType getType()
public AvroSchemaCompatibility.SchemaCompatibilityResult getResult()
public org.apache.avro.Schema getReader()
public org.apache.avro.Schema getWriter()
public String getDescription()
Copyright © 2024 The Apache Software Foundation. All rights reserved.