boolean
|
equals(Object obj)
|
boolean
|
getBooleanField(String k, boolean defaultValue)
Get a single boolean field
|
long
|
getCreationTime()
Get the time that this record was created
|
List<ZNRecordDelta>
|
getDeltaList()
Get the list of updates to this ZNRecord
|
double
|
getDoubleField(String k, double defaultValue)
Get a single double field
|
<T extends Enum<T>>
T
|
getEnumField(String k, Class<T> enumType, T defaultValue)
Get a single Enum field
|
String
|
getId()
|
int
|
getIntField(String k, int defaultValue)
Get a single int field
|
List<String>
|
getListField(String k)
Get a single List field
|
Map<String, List<String>>
|
getListFields()
Get all fields whose values are a list of values
|
long
|
getLongField(String k, long defaultValue)
Get a single long field
|
Map<String, String>
|
getMapField(String k)
Get a single Map field
|
Map<String, Map<String, String>>
|
getMapFields()
Get all fields whose values are key, value properties
|
long
|
getModifiedTime()
Get the time that this record was last modified
|
<T>
T
|
getPayload(Class<T> clazz)
Get a typed deserialized payload
|
PayloadSerializer
|
getPayloadSerializer()
|
byte[]
|
getRawPayload()
Get arbitrary data serialized as a byte array payload.
|
String
|
getSimpleField(String k)
Get a single String field
|
Map<String, String>
|
getSimpleFields()
Get all plain key, value fields
|
String
|
getStringField(String k, String defaultValue)
Get a single String field
|
int
|
getVersion()
Get the version of this record
|
void
|
merge(ZNRecord record)
merge functionality is used to merge multiple znrecord into a single one.
|
void
|
setBooleanField(String k, boolean v)
Set a single simple boolean field
|
void
|
setCreationTime(long creationTime)
Set the time that this record was created
|
void
|
setDeltaList(List<ZNRecordDelta> deltaList)
Set the list of updates to this ZNRecord
|
void
|
setDoubleField(String k, double v)
Set a single simple double field
|
<T extends Enum<T>>
void
|
setEnumField(String k, T v)
Set a single simple Enum field
|
void
|
setIntField(String k, int v)
Set a single simple int field
|
void
|
setListField(String k, List<String> v)
Set a single String --> List field
|
void
|
setListFields(Map<String, List<String>> listFields)
Set all fields whose values are a list of values
|
void
|
setLongField(String k, long v)
Set a single simple long field
|
void
|
setMapField(String k, Map<String, String> v)
Set a single String --> Map field
|
void
|
setMapFields(Map<String, Map<String, String>> mapFields)
Set all fields whose values are key, value properties
|
void
|
setModifiedTime(long modifiedTime)
Set the time that this record was last modified
|
<T>
void
|
setPayload(T payload)
Set a typed payload that will be serialized and persisted.
|
void
|
setPayloadSerializer(PayloadSerializer serializer)
|
void
|
setRawPayload(byte[] payload)
Set arbitrary data serialized as a byte array payload.
|
void
|
setSimpleField(String k, String v)
Set a simple key, value field
|
void
|
setSimpleFields(Map<String, String> simpleFields)
Set all plain key, value fields
|
void
|
setVersion(int version)
Set the version of this record
|
void
|
subtract(ZNRecord value)
Subtract value from this ZNRecord
Note: does not support subtract in each list in list fields or map in
mapFields
|
String
|
toString()
|