Class StoreMetaValue

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.systemstore.schemas.StoreMetaValue
All Implemented Interfaces:
Externalizable, Serializable, Comparable<org.apache.avro.specific.SpecificRecord>, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.GenericRecord, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificRecord

public class StoreMetaValue extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
See Also:
  • Field Details

    • SCHEMA$

      public static final org.apache.avro.Schema SCHEMA$
    • timestamp

      public long timestamp
      Timestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server).
    • storeProperties

      public StoreProperties storeProperties
    • storeKeySchemas

      public StoreKeySchemas storeKeySchemas
    • storeValueSchemas

      public StoreValueSchemas storeValueSchemas
    • storeValueSchema

      public StoreValueSchema storeValueSchema
    • storeReplicaStatuses

      public Map<CharSequence,StoreReplicaStatus> storeReplicaStatuses
      This field describes the replica statuses per version per partition, and the mapping is 'host_port' -> 'replica status'
    • storeValueSchemaIdsWrittenPerStoreVersion

      public List<Integer> storeValueSchemaIdsWrittenPerStoreVersion
      This field described the set of value schemas id written by a store version.
    • storeClusterConfig

      public StoreClusterConfig storeClusterConfig
      This is the Zk's StoreConfig equivalent which contains various Venice cluster information
  • Constructor Details

    • StoreMetaValue

      public StoreMetaValue()
      Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should use newBuilder().
    • StoreMetaValue

      public StoreMetaValue(Long timestamp, StoreProperties storeProperties, StoreKeySchemas storeKeySchemas, StoreValueSchemas storeValueSchemas, StoreValueSchema storeValueSchema, Map<CharSequence,StoreReplicaStatus> storeReplicaStatuses, List<Integer> storeValueSchemaIdsWrittenPerStoreVersion, StoreClusterConfig storeClusterConfig)
      All-args constructor.
      Parameters:
      timestamp - Timestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server).
      storeProperties - The new value for storeProperties
      storeKeySchemas - The new value for storeKeySchemas
      storeValueSchemas - The new value for storeValueSchemas
      storeValueSchema - The new value for storeValueSchema
      storeReplicaStatuses - This field describes the replica statuses per version per partition, and the mapping is 'host_port' -> 'replica status'
      storeValueSchemaIdsWrittenPerStoreVersion - This field described the set of value schemas id written by a store version.
      storeClusterConfig - This is the Zk's StoreConfig equivalent which contains various Venice cluster information
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
    • getSpecificData

      public org.apache.avro.specific.SpecificData getSpecificData()
      Overrides:
      getSpecificData in class org.apache.avro.specific.SpecificRecordBase
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
      Specified by:
      getSchema in class org.apache.avro.specific.SpecificRecordBase
    • get

      public Object get(int field$)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
      Specified by:
      get in class org.apache.avro.specific.SpecificRecordBase
    • put

      public void put(int field$, Object value$)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
      Specified by:
      put in class org.apache.avro.specific.SpecificRecordBase
    • getTimestamp

      public long getTimestamp()
      Gets the value of the 'timestamp' field.
      Returns:
      Timestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server).
    • setTimestamp

      public void setTimestamp(long value)
      Sets the value of the 'timestamp' field. Timestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server).
      Parameters:
      value - the value to set.
    • getStoreProperties

      public StoreProperties getStoreProperties()
      Gets the value of the 'storeProperties' field.
      Returns:
      The value of the 'storeProperties' field.
    • setStoreProperties

      public void setStoreProperties(StoreProperties value)
      Sets the value of the 'storeProperties' field.
      Parameters:
      value - the value to set.
    • getStoreKeySchemas

      public StoreKeySchemas getStoreKeySchemas()
      Gets the value of the 'storeKeySchemas' field.
      Returns:
      The value of the 'storeKeySchemas' field.
    • setStoreKeySchemas

      public void setStoreKeySchemas(StoreKeySchemas value)
      Sets the value of the 'storeKeySchemas' field.
      Parameters:
      value - the value to set.
    • getStoreValueSchemas

      public StoreValueSchemas getStoreValueSchemas()
      Gets the value of the 'storeValueSchemas' field.
      Returns:
      The value of the 'storeValueSchemas' field.
    • setStoreValueSchemas

      public void setStoreValueSchemas(StoreValueSchemas value)
      Sets the value of the 'storeValueSchemas' field.
      Parameters:
      value - the value to set.
    • getStoreValueSchema

      public StoreValueSchema getStoreValueSchema()
      Gets the value of the 'storeValueSchema' field.
      Returns:
      The value of the 'storeValueSchema' field.
    • setStoreValueSchema

      public void setStoreValueSchema(StoreValueSchema value)
      Sets the value of the 'storeValueSchema' field.
      Parameters:
      value - the value to set.
    • getStoreReplicaStatuses

      public Map<CharSequence,StoreReplicaStatus> getStoreReplicaStatuses()
      Gets the value of the 'storeReplicaStatuses' field.
      Returns:
      This field describes the replica statuses per version per partition, and the mapping is 'host_port' -> 'replica status'
    • setStoreReplicaStatuses

      public void setStoreReplicaStatuses(Map<CharSequence,StoreReplicaStatus> value)
      Sets the value of the 'storeReplicaStatuses' field. This field describes the replica statuses per version per partition, and the mapping is 'host_port' -> 'replica status'
      Parameters:
      value - the value to set.
    • getStoreValueSchemaIdsWrittenPerStoreVersion

      public List<Integer> getStoreValueSchemaIdsWrittenPerStoreVersion()
      Gets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.
      Returns:
      This field described the set of value schemas id written by a store version.
    • setStoreValueSchemaIdsWrittenPerStoreVersion

      public void setStoreValueSchemaIdsWrittenPerStoreVersion(List<Integer> value)
      Sets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field. This field described the set of value schemas id written by a store version.
      Parameters:
      value - the value to set.
    • getStoreClusterConfig

      public StoreClusterConfig getStoreClusterConfig()
      Gets the value of the 'storeClusterConfig' field.
      Returns:
      This is the Zk's StoreConfig equivalent which contains various Venice cluster information
    • setStoreClusterConfig

      public void setStoreClusterConfig(StoreClusterConfig value)
      Sets the value of the 'storeClusterConfig' field. This is the Zk's StoreConfig equivalent which contains various Venice cluster information
      Parameters:
      value - the value to set.
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException