Package com.linkedin.venice.schema
Interface SchemaReader
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Subinterfaces:
StoreMetadata
- All Known Implementing Classes:
AbstractStoreMetadata
,RequestBasedMetadata
,RouterBackedSchemaReader
,SchemaRepoBackedSchemaReader
public interface SchemaReader extends java.io.Closeable
This interface is considered as an internal interface to Venice codebase. Venice's users should consider usingStoreSchemaFetcher
to fetch Venice store schemas.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.avro.Schema
getKeySchema()
DerivedSchemaEntry
getLatestUpdateSchema()
org.apache.avro.Schema
getLatestValueSchema()
java.lang.Integer
getLatestValueSchemaId()
Get the latest value schema id.org.apache.avro.Schema
getUpdateSchema(int valueSchemaId)
org.apache.avro.Schema
getValueSchema(int id)
int
getValueSchemaId(org.apache.avro.Schema schema)
Return the schema ID of any schema that has the same parsing canonical form as the schema provided.
-
-
-
Method Detail
-
getKeySchema
org.apache.avro.Schema getKeySchema()
-
getValueSchema
org.apache.avro.Schema getValueSchema(int id)
-
getValueSchemaId
int getValueSchemaId(org.apache.avro.Schema schema)
Return the schema ID of any schema that has the same parsing canonical form as the schema provided.- Parameters:
schema
- The schema for which the schema ID is needed- Returns:
- The ID of the schema that has the same parsing canonical form as the schema provided
-
getLatestValueSchema
org.apache.avro.Schema getLatestValueSchema()
-
getLatestValueSchemaId
java.lang.Integer getLatestValueSchemaId()
Get the latest value schema id. This may be different from the value schema with the largest id if the superset schema is not the value schema with the largest id
-
getUpdateSchema
org.apache.avro.Schema getUpdateSchema(int valueSchemaId)
-
getLatestUpdateSchema
DerivedSchemaEntry getLatestUpdateSchema()
-
-