Interface KeyValueStorage.Batch
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- Enclosing interface:
- KeyValueStorage
public static interface KeyValueStorage.Batch extends java.io.CloseableInterface 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 intbatchCount()voidclear()voiddeleteRange(byte[] beginKey, byte[] endKey)voidflush()voidput(byte[] key, byte[] value)voidremove(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()
-
-