Package com.linkedin.venice.schema
Class GeneratedSchemaID
- java.lang.Object
-
- com.linkedin.venice.schema.GeneratedSchemaID
-
public class GeneratedSchemaID extends java.lang.Object
In Venice, some schemas are generated, by deriving them from value schemas. These generated schemas are identified by a composite ID: - ThevalueSchemaID
, which is the value schema that it was generated from. - ThegeneratedSchemaVersion
, which serves to version the generation logic itself, to account for future changes to how the generation is performed, yielding a different generated schema. Examples of generated schemas include: - Write compute operation schema (DerivedSchemaEntry
) - Replication metadata schema (RmdSchemaEntry
)
-
-
Field Summary
Fields Modifier and Type Field Description static GeneratedSchemaID
INVALID
-
Constructor Summary
Constructors Constructor Description GeneratedSchemaID(int valueSchemaID, int generatedSchemaVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getGeneratedSchemaVersion()
int
getValueSchemaID()
int
hashCode()
boolean
isValid()
-
-
-
Field Detail
-
INVALID
public static final GeneratedSchemaID INVALID
-
-
Method Detail
-
getValueSchemaID
public int getValueSchemaID()
-
getGeneratedSchemaVersion
public int getGeneratedSchemaVersion()
-
isValid
public boolean isValid()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-