public class WriteBatchImpl extends Object implements WriteBatch
Modifier and Type | Class and Description |
---|---|
static interface |
WriteBatchImpl.Handler |
Constructor and Description |
---|
WriteBatchImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
WriteBatchImpl |
delete(byte[] key) |
WriteBatchImpl |
delete(Slice key) |
void |
forEach(WriteBatchImpl.Handler handler) |
int |
getApproximateSize() |
WriteBatchImpl |
put(byte[] key,
byte[] value) |
WriteBatchImpl |
put(Slice key,
Slice value) |
int |
size() |
public int getApproximateSize()
public int size()
public WriteBatchImpl put(byte[] key, byte[] value)
put
in interface WriteBatch
public WriteBatchImpl put(Slice key, Slice value)
public WriteBatchImpl delete(byte[] key)
delete
in interface WriteBatch
public WriteBatchImpl delete(Slice key)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void forEach(WriteBatchImpl.Handler handler)
Copyright © 2011–2019. All rights reserved.