public class HashMapEntries
extends java.lang.Object
Encoding:
- the number of preceding entries [VLQ]
- the hash for each entry [HashDeltas]
- keys [an ENCODED block generated by IDurableEncoding.Map#keyEncoding()]
- values [an ENCODED block generated by IDurableEncoding.Map#valueEncoding()
| Modifier and Type | Field and Description |
|---|---|
long |
entryOffset |
HashDeltas |
hashes |
DurableInput |
keys |
IDurableEncoding.Map |
mapEncoding |
IDurableCollection.Root |
root |
DurableInput |
values |
| Modifier and Type | Method and Description |
|---|---|
static HashMapEntries |
decode(DurableInput in,
IDurableCollection.Root root,
IDurableEncoding.Map mapEncoding) |
static <K,V> void |
encode(long offset,
IList<IEntry.WithHash<K,V>> block,
IDurableEncoding.Map mapEncoding,
DurableOutput out) |
java.util.Iterator<IEntry.WithHash<java.lang.Object,java.lang.Object>> |
entries(long dropped) |
static java.lang.Object |
get(java.util.Iterator<HashMapEntries> it,
IDurableCollection.Root root,
long hash,
java.lang.Object key,
java.lang.Object defaultValue) |
static java.util.OptionalLong |
indexOf(java.util.Iterator<HashMapEntries> it,
long hash,
java.lang.Object key) |
IEntry.WithHash<java.lang.Object,java.lang.Object> |
nth(long index) |
public final long entryOffset
public final HashDeltas hashes
public final DurableInput keys
public final DurableInput values
public final IDurableEncoding.Map mapEncoding
public final IDurableCollection.Root root
public static <K,V> void encode(long offset,
IList<IEntry.WithHash<K,V>> block,
IDurableEncoding.Map mapEncoding,
DurableOutput out)
public static HashMapEntries decode(DurableInput in, IDurableCollection.Root root, IDurableEncoding.Map mapEncoding)
public static java.lang.Object get(java.util.Iterator<HashMapEntries> it, IDurableCollection.Root root, long hash, java.lang.Object key, java.lang.Object defaultValue)
public static java.util.OptionalLong indexOf(java.util.Iterator<HashMapEntries> it, long hash, java.lang.Object key)
public IEntry.WithHash<java.lang.Object,java.lang.Object> nth(long index)
public java.util.Iterator<IEntry.WithHash<java.lang.Object,java.lang.Object>> entries(long dropped)