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 Summary
Modifier and TypeFieldDescriptionstatic final org.apache.avro.Schema
This is the Zk's StoreConfig equivalent which contains various Venice cluster informationThis field describes the replica statuses per version per partition, and the mapping is 'host_port' -> 'replica status'This field described the set of value schemas id written by a store version.long
Timestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server). -
Constructor Summary
ConstructorDescriptionDefault constructor.StoreMetaValue
(Long timestamp, StoreProperties storeProperties, StoreKeySchemas storeKeySchemas, StoreValueSchemas storeValueSchemas, StoreValueSchema storeValueSchema, Map<CharSequence, StoreReplicaStatus> storeReplicaStatuses, List<Integer> storeValueSchemaIdsWrittenPerStoreVersion, StoreClusterConfig storeClusterConfig) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget
(int field$) static org.apache.avro.Schema
org.apache.avro.Schema
org.apache.avro.specific.SpecificData
Gets the value of the 'storeClusterConfig' field.Gets the value of the 'storeKeySchemas' field.Gets the value of the 'storeProperties' field.Gets the value of the 'storeReplicaStatuses' field.Gets the value of the 'storeValueSchema' field.Gets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.Gets the value of the 'storeValueSchemas' field.long
Gets the value of the 'timestamp' field.void
void
void
Sets the value of the 'storeClusterConfig' field.void
Sets the value of the 'storeKeySchemas' field.void
Sets the value of the 'storeProperties' field.void
Sets the value of the 'storeReplicaStatuses' field.void
Sets the value of the 'storeValueSchema' field.void
Sets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.void
Sets the value of the 'storeValueSchemas' field.void
setTimestamp
(long value) Sets the value of the 'timestamp' field.void
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$ -
timestamp
public long timestampTimestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server). -
storeProperties
-
storeKeySchemas
-
storeValueSchemas
-
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
-
-
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 usenewBuilder()
. -
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 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 Details
-
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
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
get
in classorg.apache.avro.specific.SpecificRecordBase
-
put
- 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
Gets the value of the 'storeProperties' field.- Returns:
- The value of the 'storeProperties' field.
-
setStoreProperties
Sets the value of the 'storeProperties' field.- Parameters:
value
- the value to set.
-
getStoreKeySchemas
Gets the value of the 'storeKeySchemas' field.- Returns:
- The value of the 'storeKeySchemas' field.
-
setStoreKeySchemas
Sets the value of the 'storeKeySchemas' field.- Parameters:
value
- the value to set.
-
getStoreValueSchemas
Gets the value of the 'storeValueSchemas' field.- Returns:
- The value of the 'storeValueSchemas' field.
-
setStoreValueSchemas
Sets the value of the 'storeValueSchemas' field.- Parameters:
value
- the value to set.
-
getStoreValueSchema
Gets the value of the 'storeValueSchema' field.- Returns:
- The value of the 'storeValueSchema' field.
-
setStoreValueSchema
Sets the value of the 'storeValueSchema' field.- Parameters:
value
- the value to set.
-
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
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
Gets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.- Returns:
- This field described the set of value schemas id written by a store version.
-
setStoreValueSchemaIdsWrittenPerStoreVersion
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
Gets the value of the 'storeClusterConfig' field.- Returns:
- This is the Zk's StoreConfig equivalent which contains various Venice cluster information
-
setStoreClusterConfig
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
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
IOException
-