public final class ArtNode256<V> extends Object implements IArtNode<V>
| Constructor and Description |
|---|
ArtNode256(ObjectsPool objectsPool) |
| Modifier and Type | Method and Description |
|---|---|
List<Map.Entry<Long,V>> |
entries()
For testing only
|
int |
forEach(LongObjConsumer<V> consumer,
int limit) |
int |
forEachDesc(LongObjConsumer<V> consumer,
int limit) |
V |
getCeilingValue(long key,
int level) |
V |
getFloorValue(long key,
int level) |
ObjectsPool |
getObjectsPool() |
V |
getValue(long key,
int level) |
String |
printDiagram(String prefix,
int level)
For testing only
|
IArtNode<V> |
put(long key,
int level,
V value) |
IArtNode<V> |
remove(long key,
int level) |
int |
size(int limit)
Get number of elements
Slow operation - O(n) complexity
|
String |
toString() |
void |
validateInternalState(int level)
For testing only
|
public ArtNode256(ObjectsPool objectsPool)
public V getCeilingValue(long key, int level)
getCeilingValue in interface IArtNode<V>public V getFloorValue(long key, int level)
getFloorValue in interface IArtNode<V>public int forEach(LongObjConsumer<V> consumer, int limit)
public int forEachDesc(LongObjConsumer<V> consumer, int limit)
forEachDesc in interface IArtNode<V>public int size(int limit)
IArtNodepublic void validateInternalState(int level)
IArtNodevalidateInternalState in interface IArtNode<V>level - levelpublic List<Map.Entry<Long,V>> entries()
IArtNodepublic String printDiagram(String prefix, int level)
IArtNodeprintDiagram in interface IArtNode<V>prefix - prefixlevel - levelpublic ObjectsPool getObjectsPool()
getObjectsPool in interface IArtNode<V>Copyright © 2020. All rights reserved.