Package com.linkedin.venice.schema
Class GeneratedSchemaEntry
java.lang.Object
com.linkedin.venice.schema.SchemaEntry
com.linkedin.venice.schema.GeneratedSchemaEntry
- Direct Known Subclasses:
DerivedSchemaEntry
,RmdSchemaEntry
This is an abstract class which represents a generic class associating a generated schema id with it's
corresponding value schema id
-
Field Summary
Fields inherited from class com.linkedin.venice.schema.SchemaEntry
DEFAULT_SCHEMA_CREATION_COMPATIBILITY_TYPE
-
Constructor Summary
ConstructorDescriptionGeneratedSchemaEntry
(int valueSchemaID, int protocolVersion, byte[] bytes) GeneratedSchemaEntry
(int valueSchemaID, int protocolVersion, String schemaStr) GeneratedSchemaEntry
(int valueSchemaID, int protocolVersion, org.apache.avro.Schema schema) -
Method Summary
Methods inherited from class com.linkedin.venice.schema.SchemaEntry
clone, getCanonicalSchemaStr, getId, getSchema, getSchemaBytes, getSchemaStr, isNewSchemaCompatible, toString
-
Field Details
-
valueSchemaID
protected final int valueSchemaID
-
-
Constructor Details
-
GeneratedSchemaEntry
-
GeneratedSchemaEntry
public GeneratedSchemaEntry(int valueSchemaID, int protocolVersion, org.apache.avro.Schema schema) -
GeneratedSchemaEntry
public GeneratedSchemaEntry(int valueSchemaID, int protocolVersion, byte[] bytes)
-
-
Method Details
-
getValueSchemaID
public int getValueSchemaID() -
equals
- Overrides:
equals
in classSchemaEntry
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSchemaEntry
-
toString
- Overrides:
toString
in classSchemaEntry
-