Class StoreMetaValue
- java.lang.Object
-
- org.apache.avro.specific.SpecificRecordBase
-
- com.linkedin.venice.systemstore.schemas.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 Summary
Fields Modifier and Type Field Description static org.apache.avro.Schema
SCHEMA$
StoreClusterConfig
storeClusterConfig
This is the Zk's StoreConfig equivalent which contains various Venice cluster informationStoreKeySchemas
storeKeySchemas
StoreProperties
storeProperties
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'StoreValueSchema
storeValueSchema
java.util.List<java.lang.Integer>
storeValueSchemaIdsWrittenPerStoreVersion
This field described the set of value schemas id written by a store version.StoreValueSchemas
storeValueSchemas
long
timestamp
Timestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server).
-
Constructor Summary
Constructors Constructor Description StoreMetaValue()
Default constructor.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(int field$)
static org.apache.avro.Schema
getClassSchema()
org.apache.avro.Schema
getSchema()
org.apache.avro.specific.SpecificData
getSpecificData()
StoreClusterConfig
getStoreClusterConfig()
Gets the value of the 'storeClusterConfig' field.StoreKeySchemas
getStoreKeySchemas()
Gets the value of the 'storeKeySchemas' field.StoreProperties
getStoreProperties()
Gets the value of the 'storeProperties' field.java.util.Map<java.lang.CharSequence,StoreReplicaStatus>
getStoreReplicaStatuses()
Gets the value of the 'storeReplicaStatuses' field.StoreValueSchema
getStoreValueSchema()
Gets the value of the 'storeValueSchema' field.java.util.List<java.lang.Integer>
getStoreValueSchemaIdsWrittenPerStoreVersion()
Gets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.StoreValueSchemas
getStoreValueSchemas()
Gets the value of the 'storeValueSchemas' field.long
getTimestamp()
Gets the value of the 'timestamp' field.void
put(int field$, java.lang.Object value$)
void
readExternal(java.io.ObjectInput in)
void
setStoreClusterConfig(StoreClusterConfig value)
Sets the value of the 'storeClusterConfig' field.void
setStoreKeySchemas(StoreKeySchemas value)
Sets the value of the 'storeKeySchemas' field.void
setStoreProperties(StoreProperties value)
Sets the value of the 'storeProperties' field.void
setStoreReplicaStatuses(java.util.Map<java.lang.CharSequence,StoreReplicaStatus> value)
Sets the value of the 'storeReplicaStatuses' field.void
setStoreValueSchema(StoreValueSchema value)
Sets the value of the 'storeValueSchema' field.void
setStoreValueSchemaIdsWrittenPerStoreVersion(java.util.List<java.lang.Integer> value)
Sets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.void
setStoreValueSchemas(StoreValueSchemas value)
Sets the value of the 'storeValueSchemas' field.void
setTimestamp(long value)
Sets the value of the 'timestamp' field.void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toString
-
-
-
-
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).
-
storeProperties
public StoreProperties storeProperties
-
storeKeySchemas
public StoreKeySchemas storeKeySchemas
-
storeValueSchemas
public StoreValueSchemas storeValueSchemas
-
storeValueSchema
public StoreValueSchema storeValueSchema
-
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 usenewBuilder()
.
-
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 storePropertiesstoreKeySchemas
- The new value for storeKeySchemasstoreValueSchemas
- The new value for storeValueSchemasstoreValueSchema
- The new value for storeValueSchemastoreReplicaStatuses
- 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 classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()
- Specified by:
getSchema
in interfaceorg.apache.avro.generic.GenericContainer
- Specified by:
getSchema
in classorg.apache.avro.specific.SpecificRecordBase
-
get
public java.lang.Object get(int field$)
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
get
in classorg.apache.avro.specific.SpecificRecordBase
-
put
public void put(int field$, java.lang.Object value$)
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
put
in classorg.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 interfacejava.io.Externalizable
- Overrides:
writeExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
java.io.IOException
-
-