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
FieldsModifier and TypeFieldDescriptionstatic final org.apache.avro.SchemaThis 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.longTimestamp when the value or a partial update for the value was generated by the writer (Venice Controller/Venice Server). -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.Schemaorg.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets 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.longGets the value of the 'timestamp' field.voidvoidvoidSets the value of the 'storeClusterConfig' field.voidSets the value of the 'storeKeySchemas' field.voidSets the value of the 'storeProperties' field.voidSets the value of the 'storeReplicaStatuses' field.voidSets the value of the 'storeValueSchema' field.voidSets the value of the 'storeValueSchemaIdsWrittenPerStoreVersion' field.voidSets the value of the 'storeValueSchemas' field.voidsetTimestamp(long value) Sets the value of the 'timestamp' field.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer- Specified by:
getSchemain classorg.apache.avro.specific.SpecificRecordBase
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
getin classorg.apache.avro.specific.SpecificRecordBase
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
putin 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:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-