|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDiskHashWriter
public class DiskHashWriter
Creates a persistent string to byte buffer hash table on disk, optimized
for quick access. It can be read back later using a
DiskHashReader
.
Field Summary | |
---|---|
private HashMap |
memMap
Keeps track of entries in memory until we're ready to write to disk |
static Tester |
tester
|
Constructor Summary | |
---|---|
DiskHashWriter()
|
Method Summary | |
---|---|
void |
outputTo(SubStoreWriter out)
Writes out the entire hash |
void |
put(String key,
PackedByteBuf val)
Add a new key/value pair to the hash. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private HashMap memMap
public static final Tester tester
Constructor Detail |
---|
public DiskHashWriter()
Method Detail |
---|
public void put(String key, PackedByteBuf val)
public void outputTo(SubStoreWriter out) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |