See: Description
| Package | Description |
|---|---|
| com.linkedin.paldb.api |
PalDB's APIs
|
| com.linkedin.paldb.impl |
Implementation classes.
|
| com.linkedin.paldb.utils |
Utilities for implementation.
|
PalDB is an embeddable persistent write-once key-value store.
StoreWriter writer = PalDB.createWriter(new File("store.paldb"));
writer.put("foo", "bar");
writer.put(1213, new int[] {1, 2, 3});
writer.close();
How to read a store:
StoreReader reader = PalDB.createReader(new File("store.paldb"));
String val1 = reader.get("foo");
int[] val2 = reader.get(1213);
reader.close();
How to iterate on a store:
StoreReader reader = PalDB.createReader(new File("store.paldb"));
Iterable> iterable = reader.iterable();
for (Map.Entry entry : iterable) {
String key = entry.getKey();
String value = entry.getValue();
}
reader.close();