@Evolving public class KeyValue<T> extends StreamElement
KeyValue with Offset.| Modifier and Type | Field and Description |
|---|---|
private RandomOffset |
offset |
| Modifier | Constructor and Description |
|---|---|
private |
KeyValue(EntityDescriptor entityDesc,
AttributeDescriptor<T> attrDesc,
java.lang.String key,
java.lang.String attribute,
RandomOffset offset,
T value,
byte[] valueBytes,
long stamp) |
| Modifier and Type | Method and Description |
|---|---|
private static <T> byte[] |
asValueBytes(AttributeDescriptor<T> attr,
T value,
byte[] valueBytes) |
boolean |
equals(java.lang.Object obj) |
T |
getParsedRequired()
Equivalent of getParsed().get() throwing explaining exceptions.
|
int |
hashCode() |
static <T> KeyValue<T> |
of(EntityDescriptor entityDesc,
AttributeDescriptor<T> attrDesc,
java.lang.String key,
java.lang.String attribute,
RandomOffset offset,
byte[] valueBytes) |
static <T> KeyValue<T> |
of(EntityDescriptor entityDesc,
AttributeDescriptor<T> attrDesc,
java.lang.String key,
java.lang.String attribute,
RandomOffset offset,
byte[] valueBytes,
long stamp) |
static <T> KeyValue<T> |
of(EntityDescriptor entityDesc,
AttributeDescriptor<T> attrDesc,
java.lang.String key,
java.lang.String attribute,
RandomOffset offset,
T value,
byte[] valueBytes) |
static <T> KeyValue<T> |
of(EntityDescriptor entityDesc,
AttributeDescriptor<T> attrDesc,
java.lang.String key,
java.lang.String attribute,
RandomOffset offset,
T value,
byte[] valueBytes,
long stamp) |
java.lang.String |
toString() |
delete, deleteWildcard, deleteWildcard, dump, getAttribute, getAttributeDescriptor, getEntityDescriptor, getKey, getParsed, getStamp, getUuid, getValue, isDelete, isDeleteWildcard, setParsed, upsertprivate final RandomOffset offset
private KeyValue(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, T value, @Nullable byte[] valueBytes, long stamp)
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes)
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes, long stamp)
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, T value, byte[] valueBytes)
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, T value, byte[] valueBytes, long stamp)
private static <T> byte[] asValueBytes(AttributeDescriptor<T> attr, T value, byte[] valueBytes)
public T getParsedRequired()
java.lang.IllegalStateException - if StreamElement.getParsed() would have returned Optional.empty()public java.lang.String toString()
toString in class StreamElementpublic boolean equals(java.lang.Object obj)
equals in class StreamElementpublic int hashCode()
hashCode in class StreamElementCopyright © 2017–2021. All rights reserved.