| Package | Description |
|---|---|
| com.hazelcast.elastic.tree |
RB Tree implementation
|
| com.hazelcast.elastic.tree.impl | |
| com.hazelcast.memory |
Contains classes for native memory management.
|
| Modifier and Type | Method and Description |
|---|---|
MemoryBlock |
OffHeapTreeEntry.getKey() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<MemoryBlock> |
OffHeapTreeEntry.values() |
| Modifier and Type | Method and Description |
|---|---|
int |
OffHeapComparator.compare(MemoryBlock left,
MemoryBlock right)
Compares two blobs specified by addresses and sizes;
|
OffHeapTreeEntry |
OffHeapTreeStore.getEntry(MemoryBlock key)
Looking for key equal to blob;
|
OffHeapTreeEntry |
OffHeapTreeStore.getEntry(MemoryBlock key,
OffHeapComparator comparator)
Looking for key equal to blob using the given comparator;
In case if not-found - if createIfNotExists==true - create new key entry;
if createIfNotExists==false - don't create new key entry - return null;
|
OffHeapTreeEntry |
OffHeapTreeStore.put(MemoryBlock key,
MemoryBlock value)
Looking for key equal to blob;
In case if found - append value represented by value to the chain of key's values;
In case if not-found - adds new key to the corresponding place in the tree and assign value to this 'new' key;
|
OffHeapTreeEntry |
OffHeapTreeStore.searchEntry(MemoryBlock key)
Looking for key equal or closest to blob;
|
| Modifier and Type | Method and Description |
|---|---|
MemoryBlock |
EntryValuesIterator.next() |
| Modifier and Type | Method and Description |
|---|---|
OffHeapTreeEntry |
RedBlackTreeStore.getEntry(MemoryBlock key) |
OffHeapTreeEntry |
RedBlackTreeStore.getEntry(MemoryBlock key,
OffHeapComparator comparator) |
OffHeapTreeEntry |
RedBlackTreeStore.put(MemoryBlock key,
MemoryBlock value) |
OffHeapTreeEntry |
RedBlackTreeStore.put(MemoryBlock key,
MemoryBlock value,
OffHeapComparator comparator) |
OffHeapTreeEntry |
RedBlackTreeStore.searchEntry(MemoryBlock key) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MemoryBlockAccessor<V extends MemoryBlock>
TODO: need refactoring & cleanup!
|
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.