public interface KeyValuePartitionWriter extends Closeable, Cancelable
Modifier and Type | Interface and Description |
---|---|
static class |
KeyValuePartitionWriter.Factory
Factory for
KeyValuePartitionWriter . |
Modifier and Type | Method and Description |
---|---|
boolean |
canPut(byte[] key,
byte[] value)
Returns whether this writer will be full after inserting the given key-value pair.
|
int |
keyCount() |
void |
put(byte[] key,
byte[] value)
Adds a key and the associated value to this writer.
|
cancel
void put(byte[] key, byte[] value) throws IOException
key
- key to put, cannot be nullvalue
- value to put, cannot be nullIOException
boolean canPut(byte[] key, byte[] value)
key
- key to put, cannot be nullvalue
- value to put, cannot be nullint keyCount()
Copyright © 2023. All Rights Reserved.