Interface SchemaReader

All Superinterfaces:
AutoCloseable, Closeable
All Known Subinterfaces:
StoreMetadata
All Known Implementing Classes:
AbstractStoreMetadata, RequestBasedMetadata, RouterBackedSchemaReader, SchemaRepoBackedSchemaReader

public interface SchemaReader extends Closeable
This interface is considered as an internal interface to Venice codebase. Venice's users should consider using StoreSchemaFetcher to fetch Venice store schemas.
  • Method Details

    • 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

      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()