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()
StoreWriter
close
in interface StoreWriter
public Configuration getConfiguration()
StoreWriter
open()
method.getConfiguration
in interface StoreWriter
public void put(java.lang.Object key, java.lang.Object value)
StoreWriter
put
in interface StoreWriter
key
- a keyvalue
- a valuepublic void putAll(java.lang.Object[] keys, java.lang.Object[] values)
StoreWriter
putAll
in interface StoreWriter
keys
- a collection of keysvalues
- a collection of valuespublic void put(byte[] key, byte[] value)
StoreWriter
Use only this method if you've already serialized the key and the value in their PalDB format.
put
in interface StoreWriter
key
- a serialized key as a byte arrayvalue
- a serialized value as a byte array