public final class WriterImpl extends java.lang.Object implements StoreWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the store writer and append the data to the final destination.
|
Configuration |
getConfiguration()
Return the writer configuration.
|
void |
put(byte[] key,
byte[] value)
Put serialized key-value entry to the store.
|
void |
put(java.lang.Object key,
java.lang.Object value)
Put key-value to the store.
|
void |
putAll(java.lang.Object[] keys,
java.lang.Object[] values)
Put multiple key-values to the store.
|
public void close()
StoreWriterclose in interface StoreWriterpublic Configuration getConfiguration()
StoreWriteropen() method.getConfiguration in interface StoreWriterpublic void put(java.lang.Object key,
java.lang.Object value)
StoreWriterput in interface StoreWriterkey - a keyvalue - a valuepublic void putAll(java.lang.Object[] keys,
java.lang.Object[] values)
StoreWriterputAll in interface StoreWriterkeys - a collection of keysvalues - a collection of valuespublic void put(byte[] key,
byte[] value)
StoreWriterUse only this method if you've already serialized the key and the value in their PalDB format.
put in interface StoreWriterkey - a serialized key as a byte arrayvalue - a serialized value as a byte array