public interface SparkeyWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Flush and close the writer.
|
void |
delete(byte[] key)
Deletes the key from the writer.
|
void |
delete(String key)
Deletes the key from the writer, as UTF-8
|
void |
flush()
Flush all pending writes to file.
|
void |
put(byte[] key,
byte[] value)
Append the key/value pair to the writer.
|
void |
put(byte[] key,
InputStream valueStream,
long valueLen)
Append the key/value pair to the writer.
|
void |
put(String key,
String value)
Append the key/value pair to the writer, as UTF-8.
|
void |
writeHash()
Create or rewrite the index,
which is required for random lookups to be visible.
|
void |
writeHash(HashType hashType)
Create or rewrite the index,
which is required for random lookups to be visible.
|
void put(String key, String value) throws IOException
IOException
void put(byte[] key, byte[] value) throws IOException
IOException
void put(byte[] key, InputStream valueStream, long valueLen) throws IOException
IOException
void delete(String key) throws IOException
IOException
void delete(byte[] key) throws IOException
IOException
void flush() throws IOException
IOException
void close() throws IOException
IOException
void writeHash() throws IOException
IOException
void writeHash(HashType hashType) throws IOException
hashType
- choice of hash type, can be 32 or 64 bits.IOException
Copyright © 2013. All rights reserved.