public final class RocksDbDiskMap<T extends Serializable,R extends Serializable> extends DiskMap<T,R>
diskMapPath| Constructor and Description |
|---|
RocksDbDiskMap(String rocksDbStoragePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close()
Close and cleanup the Map.
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<T,R>> |
entrySet() |
R |
get(Object key) |
boolean |
isEmpty() |
Iterator<R> |
iterator()
Custom iterator to iterate over values written to disk.
|
Set<T> |
keySet() |
R |
put(T key,
R value) |
void |
putAll(Map<? extends T,? extends R> keyValues) |
R |
remove(Object key) |
int |
size() |
long |
sizeOfFileOnDiskInBytes()
Number of bytes spilled to disk.
|
Collection<R> |
values() |
Stream<R> |
valueStream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllforEach, spliteratorpublic RocksDbDiskMap(String rocksDbStoragePath) throws IOException
IOExceptionpublic int size()
public boolean isEmpty()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public void clear()
public Collection<R> values()
public long sizeOfFileOnDiskInBytes()
DiskMappublic void close()
DiskMapclose in class DiskMap<T extends Serializable,R extends Serializable>Copyright © 2024 The Apache Software Foundation. All rights reserved.