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 KeyValuewithOffset.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)TgetParsedRequired()Equivalent of getParsed().get() throwing explaining exceptions.inthashCode()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.StringtoString()- 
Methods inherited from class cz.o2.proxima.core.storage.StreamElementdelete, delete, deleteWildcard, deleteWildcard, deleteWildcard, deleteWildcard, dump, getParsed, getUuid, hasSequentialId, isDelete, isDeleteWildcard, setParsed, upsert, upsert
 
- 
 
- 
- 
- 
Method Detail- 
ofpublic static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes) 
 - 
ofpublic static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, byte[] valueBytes, long stamp) 
 - 
ofpublic 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) 
 - 
ofpublic static <T> KeyValue<T> of(EntityDescriptor entityDesc, AttributeDescriptor<T> attrDesc, java.lang.String key, java.lang.String attribute, RandomOffset offset, T value, byte[] valueBytes) 
 - 
ofpublic 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) 
 - 
ofpublic 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) 
 - 
getParsedRequiredpublic T getParsedRequired() Equivalent of getParsed().get() throwing explaining exceptions.- Returns:
- value if present
- Throws:
- java.lang.IllegalStateException- if- StreamElement.getParsed()would have returned- Optional.empty()
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- StreamElement
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- StreamElement
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- StreamElement
 
 
- 
 
-