Package com.linkedin.venice.schema.avro
Class SchemaCompatibility.SchemaPairCompatibility
- java.lang.Object
-
- com.linkedin.venice.schema.avro.SchemaCompatibility.SchemaPairCompatibility
-
- Enclosing class:
- SchemaCompatibility
public static final class SchemaCompatibility.SchemaPairCompatibility extends java.lang.Object
Provides information about the compatibility of a single reader and writer schema pair. Note: This class represents a one-way relationship from the reader to the writer schema.
-
-
Constructor Summary
Constructors Constructor Description SchemaPairCompatibility(SchemaCompatibility.SchemaCompatibilityType type, org.apache.avro.Schema reader, org.apache.avro.Schema writer, java.lang.String description)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.lang.String
getDescription()
Gets a human readable description of this validation result.org.apache.avro.Schema
getReader()
Gets the reader schema that was validated.SchemaCompatibility.SchemaCompatibilityType
getType()
Gets the type of this result.org.apache.avro.Schema
getWriter()
Gets the writer schema that was validated.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
SchemaPairCompatibility
public SchemaPairCompatibility(SchemaCompatibility.SchemaCompatibilityType type, org.apache.avro.Schema reader, org.apache.avro.Schema writer, java.lang.String description)
Constructs a new instance.- Parameters:
type
- of the schema compatibility.reader
- schema that was validated.writer
- schema that was validated.description
- of this compatibility result.
-
-
Method Detail
-
getType
public SchemaCompatibility.SchemaCompatibilityType getType()
Gets the type of this result.- Returns:
- the type of this result.
-
getReader
public org.apache.avro.Schema getReader()
Gets the reader schema that was validated.- Returns:
- reader schema that was validated.
-
getWriter
public org.apache.avro.Schema getWriter()
Gets the writer schema that was validated.- Returns:
- writer schema that was validated.
-
getDescription
public java.lang.String getDescription()
Gets a human readable description of this validation result.- Returns:
- a human readable description of this validation result.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-