Interface KeyValueStorage.Batch
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- Enclosing interface:
- KeyValueStorage
public static interface KeyValueStorage.Batch extends java.io.Closeable
Interface for a batch to be written in the storage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
batchCount()
void
clear()
void
deleteRange(byte[] beginKey, byte[] endKey)
void
flush()
void
put(byte[] key, byte[] value)
void
remove(byte[] key)
-
-
-
Method Detail
-
put
void put(byte[] key, byte[] value) throws java.io.IOException
- Throws:
java.io.IOException
-
remove
void remove(byte[] key) throws java.io.IOException
- Throws:
java.io.IOException
-
deleteRange
void deleteRange(byte[] beginKey, byte[] endKey) throws java.io.IOException
- Throws:
java.io.IOException
-
clear
void clear()
-
flush
void flush() throws java.io.IOException
- Throws:
java.io.IOException
-
batchCount
default int batchCount()
-
-