java.lang.Object | |
↳ | org.apache.helix.ZNRecord |
Known Direct Subclasses |
Known Indirect Subclasses |
Generic Record Format to store data at a Node This can be used to store simpleFields mapFields listFields
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | LIST_FIELD_BOUND | ||||||||||
int | SIZE_LIMIT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize with an identifier
| |||||||||||
Initialize with a pre-populated ZNRecord
| |||||||||||
Initialize with a pre-populated ZNRecord, overwriting the identifier
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get a single boolean field
| |||||||||||
Get the time that this record was created
| |||||||||||
Get the list of updates to this ZNRecord
| |||||||||||
Get a single double field
| |||||||||||
Get a single Enum field
| |||||||||||
Get a single int field
| |||||||||||
Get a single List field
| |||||||||||
Get all fields whose values are a list of values
| |||||||||||
Get a single long field
| |||||||||||
Get a single Map field
| |||||||||||
Get all fields whose values are key, value properties
| |||||||||||
Get the time that this record was last modified
| |||||||||||
Get a typed deserialized payload
| |||||||||||
Get the
PayloadSerializer that will serialize/deserialize the payload | |||||||||||
Get arbitrary data serialized as a byte array payload.
| |||||||||||
Get a single String field
| |||||||||||
Get all plain key, value fields
| |||||||||||
Get a single String field
| |||||||||||
Get the version of this record
| |||||||||||
merge functionality is used to merge multiple znrecord into a single one.
| |||||||||||
Set a single simple boolean field
| |||||||||||
Set the time that this record was created
| |||||||||||
Set the list of updates to this ZNRecord
| |||||||||||
Set a single simple double field
| |||||||||||
Set a single simple Enum field
| |||||||||||
Set a single simple int field
| |||||||||||
Set a single String --> List field
| |||||||||||
Set all fields whose values are a list of values
| |||||||||||
Set a single simple long field
| |||||||||||
Set a single String --> Map field
| |||||||||||
Set all fields whose values are key, value properties
| |||||||||||
Set the time that this record was last modified
| |||||||||||
Set a typed payload that will be serialized and persisted.
| |||||||||||
Set a custom
PayloadSerializer to allow including arbitrary data | |||||||||||
Set arbitrary data serialized as a byte array payload.
| |||||||||||
Set a simple key, value field
| |||||||||||
Set all plain key, value fields
| |||||||||||
Set the version of this record
| |||||||||||
Subtract value from this ZNRecord
Note: does not support subtract in each list in list fields or map in
mapFields
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Initialize with a pre-populated ZNRecord, overwriting the identifier
Get a single boolean field
Get the time that this record was created
Get the list of updates to this ZNRecord
ZNRecordDelta
Get a single double field
Get a single Enum field
Get a single int field
Get all fields whose values are a list of values
Get a single long field
Get a single Map field
Get all fields whose values are key, value properties
Get the time that this record was last modified
Get the PayloadSerializer
that will serialize/deserialize the payload
Get arbitrary data serialized as a byte array payload. Consider using
getPayload(Class)
instead
Get all plain key, value fields
Get a single String field
Get the version of this record
merge functionality is used to merge multiple znrecord into a single one. This will make use of the id of each ZNRecord and append it to every key thus making key unique. This is needed to optimize on the watches.
Set the time that this record was created
Set all fields whose values are a list of values
Set all fields whose values are key, value properties
Set the time that this record was last modified
Set a typed payload that will be serialized and persisted.
Set a custom PayloadSerializer
to allow including arbitrary data
Set arbitrary data serialized as a byte array payload. Consider using
setPayload(Object)
instead
Set the version of this record
Subtract value from this ZNRecord Note: does not support subtract in each list in list fields or map in mapFields