public class EdgeKVStorage extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EdgeKVStorage.KeyValue |
| Constructor and Description |
|---|
EdgeKVStorage(Directory dir)
Specify a larger cacheSize to reduce disk usage.
|
| Modifier and Type | Method and Description |
|---|---|
long |
add(List<EdgeKVStorage.KeyValue> entries)
This method writes the specified entryMap (key-value pairs) into the storage.
|
void |
close() |
EdgeKVStorage |
create(long initBytes) |
static String |
cutString(String value)
This method limits the specified String value to the length currently accepted for values in the EdgeKVStorage.
|
void |
flush() |
Object |
get(long entryPointer,
String key,
boolean reverse) |
List<EdgeKVStorage.KeyValue> |
getAll(long entryPointer) |
long |
getCapacity() |
boolean |
isClosed() |
boolean |
loadExisting() |
public EdgeKVStorage(Directory dir)
public EdgeKVStorage create(long initBytes)
public boolean loadExisting()
public long add(List<EdgeKVStorage.KeyValue> entries)
public List<EdgeKVStorage.KeyValue> getAll(long entryPointer)
public void flush()
public void close()
public boolean isClosed()
public long getCapacity()
Copyright © 2012–2022. All rights reserved.