| Package | Description |
|---|---|
| net.openhft.chronicle.hash |
Contains common interfaces and utilities for
ChronicleMaps (net.openhft.chronicle.map package) and
ChronicleSets
(net.openhft.chronicle.set package). |
| net.openhft.chronicle.hash.serialization |
The package contains interfaces for serializing objects and values between Java heap and
Bytes or BytesStore. |
| net.openhft.chronicle.map |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractData<T>
Defines reasonable defaults for
Data's equals(), hashCode() and
toString(). |
| Modifier and Type | Method and Description |
|---|---|
Data<K> |
HashAbsentEntry.absentKey()
Returns the key is going to be inserted into the
ChronicleHash. |
Data<K> |
HashEntry.key()
Returns the entry key.
|
Data<K> |
HashQueryContext.queriedKey()
Returns the queried key as a
Data. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Data.bytesEquivalent(Data<?> d1,
Data<?> d2)
Utility method, compares two
Data instances represent equivalent bytes sequences:
by comparing their sizes, then calling d1.equivalent(d2.bytes(), d2.offset()). |
static boolean |
Data.bytesEquivalent(Data<?> d1,
Data<?> d2)
Utility method, compares two
Data instances represent equivalent bytes sequences:
by comparing their sizes, then calling d1.equivalent(d2.bytes(), d2.offset()). |
EQC |
ChronicleHash.queryContext(Data<K> key)
Equivalent to
ChronicleHash.queryContext(Object), but accepts Data instead of key as
an object. |
| Modifier and Type | Method and Description |
|---|---|
Data<T> |
DataAccess.getData(T instance) |
| Modifier and Type | Method and Description |
|---|---|
Data<V> |
MapAbsentEntry.defaultValue()
Returns the default (or nil) value, that should be inserted into the map in
this context.
|
Data<V> |
DefaultValueProvider.defaultValue(MapAbsentEntry<K,V> absentEntry)
Returns the "nil" value, which should be inserted into the map, in the given
absentEntry context. |
Data<V> |
MapEntry.value()
Returns the entry value.
|
Data<V> |
MapContext.wrapValueAsData(V value)
Wraps the given value as a
Data. |
Data<V> |
MapContext.wrapValueBytesAsData(BytesStore valueBytes,
long offset,
long size)
Wraps the given value bytes as a
Data. |
| Modifier and Type | Method and Description |
|---|---|
void |
MapAbsentEntry.doInsert(Data<V> value)
Inserts the new entry into the map, of the key and the given
value. |
void |
MapEntry.doReplaceValue(Data<V> newValue)
Replaces the entry's value with the given
newValue. |
default R |
MapEntryOperations.insert(MapAbsentEntry<K,V> absentEntry,
Data<V> value)
Inserts the new entry into the map, of
the key from
the given insertion context (absentEntry) and the given value. |
default void |
MapMethods.merge(MapQueryContext<K,V,R> q,
Data<V> value,
BiFunction<? super V,? super V,? extends V> remappingFunction,
ReturnValue<V> returnValue)
Backing
ConcurrentMap.merge(Object, Object, BiFunction) method. |
default void |
MapMethods.put(MapQueryContext<K,V,R> q,
Data<V> value,
ReturnValue<V> returnValue)
Backing
Map.put(Object, Object) method. |
default void |
MapMethods.putIfAbsent(MapQueryContext<K,V,R> q,
Data<V> value,
ReturnValue<V> returnValue)
Backing
ConcurrentMap.putIfAbsent(Object, Object) method. |
default boolean |
MapMethods.remove(MapQueryContext<K,V,R> q,
Data<V> value)
Backing
ConcurrentMap.remove(Object, Object) method. |
default boolean |
MapMethods.replace(MapQueryContext<K,V,R> q,
Data<V> oldValue,
Data<V> newValue)
Backing
ConcurrentMap.replace(Object, Object, Object) method. |
default boolean |
MapMethods.replace(MapQueryContext<K,V,R> q,
Data<V> oldValue,
Data<V> newValue)
Backing
ConcurrentMap.replace(Object, Object, Object) method. |
default void |
MapMethods.replace(MapQueryContext<K,V,R> q,
Data<V> value,
ReturnValue<V> returnValue)
Backing
ConcurrentMap.replace(Object, Object) method. |
default R |
MapEntryOperations.replaceValue(MapEntry<K,V> entry,
Data<V> newValue)
Replaces the given entry's value with the new one.
|
void |
ReturnValue.returnValue(Data<V> value) |
Copyright © 2016. All rights reserved.