Class KeyValue<T>
- java.lang.Object
-
- cz.o2.proxima.core.storage.StreamElement
-
- cz.o2.proxima.direct.core.randomaccess.KeyValue<T>
-
- All Implemented Interfaces:
java.io.Serializable
@Evolving public class KeyValue<T> extends StreamElement
KeyValue
withOffset
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, long seqId, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes, long stamp)
static <T> KeyValue<T>
of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, long seqId, java.lang.String key, java.lang.String attribute, RandomOffset offset, T value, byte[] valueBytes, long stamp)
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()
-
Methods inherited from class cz.o2.proxima.core.storage.StreamElement
delete, delete, deleteWildcard, deleteWildcard, deleteWildcard, deleteWildcard, dump, getParsed, getUuid, hasSequentialId, isDelete, isDeleteWildcard, setParsed, upsert, upsert
-
-
-
-
Method Detail
-
of
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes)
-
of
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)
-
of
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, long seqId, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes, long stamp)
-
of
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)
-
of
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)
-
of
public static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, long seqId, java.lang.String key, java.lang.String attribute, RandomOffset offset, T value, byte[] valueBytes, long stamp)
-
getParsedRequired
public T getParsedRequired()
Equivalent of getParsed().get() throwing explaining exceptions.- Returns:
- value if present
- Throws:
java.lang.IllegalStateException
- ifStreamElement.getParsed()
would have returnedOptional.empty()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classStreamElement
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classStreamElement
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classStreamElement
-
-