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 | |
net.openhft.chronicle.map.impl | |
net.openhft.chronicle.map.replication |
Modifier and Type | Class and Description |
---|---|
class |
AbstractData<V>
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 . |
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) |
Modifier and Type | Field and Description |
---|---|
Data<K> |
CompiledMapQueryContext.inputKey |
Data<K> |
CompiledReplicatedMapQueryContext.inputKey |
Data<K> |
CompiledReplicatedMapIterationContext.inputKey |
Data<K> |
CompiledMapIterationContext.inputKey |
Data<V> |
CompiledMapQueryContext.WrappedValueInstanceDataHolder.wrappedData |
Data<V> |
CompiledReplicatedMapQueryContext.WrappedValueInstanceDataHolder.wrappedData |
Data<V> |
CompiledReplicatedMapIterationContext.WrappedValueInstanceDataHolder.wrappedData |
Data<V> |
CompiledMapIterationContext.WrappedValueInstanceDataHolder.wrappedData |
Modifier and Type | Method and Description |
---|---|
Data<K> |
CompiledMapQueryContext.absentKey() |
Data<K> |
CompiledReplicatedMapQueryContext.absentKey() |
Data<K> |
CompiledReplicatedMapQueryContext.ReplicatedMapAbsentDelegating.absentKey() |
Data<K> |
CompiledReplicatedMapIterationContext.absentKey() |
Data<K> |
CompiledReplicatedMapIterationContext.ReplicatedMapAbsentDelegatingForIteration.absentKey() |
Data<V> |
CompiledMapQueryContext.defaultValue() |
Data<V> |
CompiledReplicatedMapQueryContext.defaultValue() |
Data<V> |
CompiledReplicatedMapQueryContext.ReplicatedMapAbsentDelegating.defaultValue() |
Data<V> |
CompiledReplicatedMapIterationContext.defaultValue() |
Data<V> |
CompiledReplicatedMapIterationContext.ReplicatedMapAbsentDelegatingForIteration.defaultValue() |
Data<V> |
CompiledMapQueryContext.defaultValue(MapAbsentEntry<K,V> absentEntry) |
Data<V> |
CompiledReplicatedMapQueryContext.defaultValue(MapAbsentEntry<K,V> absentEntry) |
Data<V> |
CompiledReplicatedMapIterationContext.defaultValue(MapAbsentEntry<K,V> absentEntry) |
Data<V> |
CompiledMapIterationContext.defaultValue(MapAbsentEntry<K,V> absentEntry) |
Data<V> |
CompiledReplicatedMapQueryContext.dummyZeroValue() |
Data<K> |
CompiledMapQueryContext.inputKey() |
Data<K> |
CompiledReplicatedMapQueryContext.inputKey() |
Data<K> |
CompiledReplicatedMapIterationContext.inputKey() |
Data<K> |
CompiledMapIterationContext.inputKey() |
Data<K> |
CompiledMapQueryContext.key() |
Data<K> |
CompiledReplicatedMapQueryContext.key() |
Data<K> |
CompiledReplicatedMapIterationContext.key() |
Data<K> |
CompiledReplicatedMapIterationContext.ReplicatedMapEntryDelegating.key() |
Data<K> |
CompiledMapIterationContext.key() |
Data<K> |
CompiledMapQueryContext.queriedKey() |
Data<K> |
CompiledReplicatedMapQueryContext.queriedKey() |
Data<V> |
CompiledMapQueryContext.value() |
Data<V> |
CompiledReplicatedMapQueryContext.value() |
Data<V> |
CompiledReplicatedMapIterationContext.value() |
Data<V> |
CompiledReplicatedMapIterationContext.ReplicatedMapEntryDelegating.value() |
Data<V> |
CompiledMapIterationContext.value() |
Data<V> |
CompiledMapQueryContext.WrappedValueInstanceDataHolder.wrappedData() |
Data<V> |
CompiledReplicatedMapQueryContext.WrappedValueInstanceDataHolder.wrappedData() |
Data<V> |
CompiledReplicatedMapIterationContext.WrappedValueInstanceDataHolder.wrappedData() |
Data<V> |
CompiledMapIterationContext.WrappedValueInstanceDataHolder.wrappedData() |
Data<V> |
CompiledMapQueryContext.wrapValueAsData(V value) |
Data<V> |
CompiledReplicatedMapQueryContext.wrapValueAsData(V value) |
Data<V> |
CompiledReplicatedMapIterationContext.wrapValueAsData(V value) |
Data<V> |
CompiledMapIterationContext.wrapValueAsData(V value) |
Modifier and Type | Method and Description |
---|---|
void |
CompiledMapQueryContext.doInsert(Data<V> value) |
void |
CompiledReplicatedMapQueryContext.doInsert(Data<V> value) |
void |
CompiledReplicatedMapQueryContext.ReplicatedMapAbsentDelegating.doInsert(Data<V> value) |
void |
CompiledReplicatedMapIterationContext.doInsert(Data<V> value) |
void |
CompiledReplicatedMapIterationContext.ReplicatedMapAbsentDelegatingForIteration.doInsert(Data<V> value) |
void |
CompiledMapQueryContext.doReplaceValue(Data<V> newValue) |
void |
CompiledReplicatedMapQueryContext.doReplaceValue(Data<V> newValue) |
void |
CompiledReplicatedMapIterationContext.doReplaceValue(Data<V> newValue) |
void |
CompiledReplicatedMapIterationContext.ReplicatedMapEntryDelegating.doReplaceValue(Data<V> newValue) |
void |
CompiledMapIterationContext.doReplaceValue(Data<V> newValue) |
void |
CompiledMapQueryContext.initInputKey(Data<K> inputKey) |
void |
CompiledReplicatedMapQueryContext.initInputKey(Data<K> inputKey) |
void |
CompiledReplicatedMapIterationContext.initInputKey(Data<K> inputKey) |
void |
CompiledMapIterationContext.initInputKey(Data<K> inputKey) |
void |
CompiledMapQueryContext.initValue_WithoutSize(Data<?> value,
long oldValueSizeOffset,
long oldValueSize,
long oldValueOffset) |
void |
CompiledReplicatedMapQueryContext.initValue_WithoutSize(Data<?> value,
long oldValueSizeOffset,
long oldValueSize,
long oldValueOffset) |
void |
CompiledReplicatedMapIterationContext.initValue_WithoutSize(Data<?> value,
long oldValueSizeOffset,
long oldValueSize,
long oldValueOffset) |
void |
CompiledMapIterationContext.initValue_WithoutSize(Data<?> value,
long oldValueSizeOffset,
long oldValueSize,
long oldValueOffset) |
void |
CompiledMapQueryContext.initValue(Data<?> value) |
void |
CompiledReplicatedMapQueryContext.initValue(Data<?> value) |
void |
CompiledReplicatedMapIterationContext.initValue(Data<?> value) |
void |
CompiledMapIterationContext.initValue(Data<?> value) |
void |
CompiledMapQueryContext.innerDefaultReplaceValue(Data<V> newValue) |
void |
CompiledReplicatedMapQueryContext.innerDefaultReplaceValue(Data<V> newValue) |
void |
CompiledReplicatedMapIterationContext.innerDefaultReplaceValue(Data<V> newValue) |
void |
CompiledMapIterationContext.innerDefaultReplaceValue(Data<V> newValue) |
R |
CompiledMapQueryContext.insert(MapAbsentEntry<K,V> absentEntry,
Data<V> value) |
R |
CompiledReplicatedMapQueryContext.insert(MapAbsentEntry<K,V> absentEntry,
Data<V> value) |
R |
CompiledReplicatedMapIterationContext.insert(MapAbsentEntry<K,V> absentEntry,
Data<V> value) |
R |
CompiledMapIterationContext.insert(MapAbsentEntry<K,V> absentEntry,
Data<V> value) |
long |
CompiledMapQueryContext.newEntrySize(Data<V> newValue,
long entryStartOffset,
long newValueOffset) |
long |
CompiledReplicatedMapQueryContext.newEntrySize(Data<V> newValue,
long entryStartOffset,
long newValueOffset) |
long |
CompiledReplicatedMapIterationContext.newEntrySize(Data<V> newValue,
long entryStartOffset,
long newValueOffset) |
long |
CompiledMapIterationContext.newEntrySize(Data<V> newValue,
long entryStartOffset,
long newValueOffset) |
long |
CompiledMapQueryContext.newSizeOfEverythingBeforeValue(Data<V> newValue) |
long |
CompiledReplicatedMapQueryContext.newSizeOfEverythingBeforeValue(Data<V> newValue) |
long |
CompiledReplicatedMapIterationContext.newSizeOfEverythingBeforeValue(Data<V> newValue) |
long |
CompiledMapIterationContext.newSizeOfEverythingBeforeValue(Data<V> newValue) |
void |
CompiledMapQueryContext.putValueDeletedEntry(Data<V> newValue) |
void |
CompiledReplicatedMapQueryContext.putValueDeletedEntry(Data<V> newValue) |
void |
CompiledReplicatedMapIterationContext.putValueDeletedEntry(Data<V> newValue) |
void |
CompiledMapIterationContext.putValueDeletedEntry(Data<V> newValue) |
protected void |
CompiledMapQueryContext.relocation(Data<V> newValue,
long newSizeOfEverythingBeforeValue) |
protected void |
CompiledReplicatedMapQueryContext.relocation(Data<V> newValue,
long newSizeOfEverythingBeforeValue) |
protected void |
CompiledReplicatedMapIterationContext.relocation(Data<V> newValue,
long newSizeOfEverythingBeforeValue) |
protected void |
CompiledMapIterationContext.relocation(Data<V> newValue,
long newSizeOfEverythingBeforeValue) |
R |
CompiledMapQueryContext.replaceValue(MapEntry<K,V> entry,
Data<V> newValue) |
R |
CompiledReplicatedMapQueryContext.replaceValue(MapEntry<K,V> entry,
Data<V> newValue) |
R |
CompiledReplicatedMapIterationContext.replaceValue(MapEntry<K,V> entry,
Data<V> newValue) |
R |
CompiledMapIterationContext.replaceValue(MapEntry<K,V> entry,
Data<V> newValue) |
void |
CompiledMapQueryContext.DefaultReturnValue.returnValue(Data<V> value) |
void |
CompiledMapQueryContext.UsingReturnValue.returnValue(Data<V> value) |
void |
CompiledReplicatedMapQueryContext.DefaultReturnValue.returnValue(Data<V> value) |
void |
CompiledReplicatedMapQueryContext.UsingReturnValue.returnValue(Data<V> value) |
void |
CompiledMapQueryContext.writeNewEntry(long pos,
Data<?> key) |
void |
CompiledReplicatedMapQueryContext.writeNewEntry(long pos,
Data<?> key) |
void |
CompiledReplicatedMapIterationContext.writeNewEntry(long pos,
Data<?> key) |
void |
CompiledMapIterationContext.writeNewEntry(long pos,
Data<?> key) |
void |
CompiledMapQueryContext.writeValue(Data<?> value) |
void |
CompiledReplicatedMapQueryContext.writeValue(Data<?> value) |
void |
CompiledReplicatedMapIterationContext.writeValue(Data<?> value) |
void |
CompiledMapIterationContext.writeValue(Data<?> value) |
void |
CompiledMapQueryContext.writeValueAndPutPos(Data<V> value) |
void |
CompiledReplicatedMapQueryContext.writeValueAndPutPos(Data<V> value) |
void |
CompiledReplicatedMapIterationContext.writeValueAndPutPos(Data<V> value) |
void |
CompiledMapIterationContext.writeValueAndPutPos(Data<V> value) |
Modifier and Type | Method and Description |
---|---|
Data<V> |
MapRemoteQueryContext.dummyZeroValue()
The value used as a tombstone, for removed entries, to save space.
|
Modifier and Type | Method and Description |
---|---|
default void |
MapRemoteOperations.put(MapRemoteQueryContext<K,V,R> q,
Data<V> newValue)
Handle remote
put call or replication event, i. |
Copyright © 2015. All rights reserved.