Class StoreMetaValue

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.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:
    Serialized Form
    • Field Detail

      • 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).
      • storeReplicaStatuses

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

        public java.util.List<java.lang.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 Detail

      • 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​(java.lang.Long timestamp,
                              StoreProperties storeProperties,
                              StoreKeySchemas storeKeySchemas,
                              StoreValueSchemas storeValueSchemas,
                              StoreValueSchema storeValueSchema,
                              java.util.Map<java.lang.CharSequence,​StoreReplicaStatus> storeReplicaStatuses,
                              java.util.List<java.lang.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 Detail

      • 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 java.lang.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$,
                        java.lang.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 java.util.Map<java.lang.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​(java.util.Map<java.lang.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 java.util.List<java.lang.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​(java.util.List<java.lang.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​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class org.apache.avro.specific.SpecificRecordBase
        Throws:
        java.io.IOException
      • readExternal

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