mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add methods for Engine support
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package net.openhft.chronicle.hash;
|
||||
|
||||
import net.openhft.chronicle.bytes.BytesStore;
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.MapMethods;
|
||||
import net.openhft.chronicle.map.MapQueryContext;
|
||||
@@ -80,6 +81,18 @@ public interface ChronicleHash<K, E extends HashEntry<K>, SC extends HashSegment
|
||||
*/
|
||||
@NotNull EQC queryContext(Data<K> key);
|
||||
|
||||
/**
|
||||
* Returns the context to perform arbitrary operations with the given key, provided in the
|
||||
* serialized form. See {@link #queryContext(Object)} and {@link #queryContext(Data)} for more
|
||||
* information on contexts semantics and usage patterns.
|
||||
*
|
||||
* @param keyBytes the bytes store with the key bytes to query
|
||||
* @param offset actual offset of the key bytes within the given BytesStore
|
||||
* @param size length of the key bytes sequence
|
||||
* @return the context to perform operations with the key
|
||||
*/
|
||||
@NotNull EQC queryContext(BytesStore keyBytes, long offset, long size);
|
||||
|
||||
/**
|
||||
* Returns the context of the segment with the given index. Segments are indexed from 0 to
|
||||
* {@link #segments()}{@code - 1}.
|
||||
|
||||
Reference in New Issue
Block a user