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 WriteBatchpublic WriteBatchImpl put(Slice key, Slice value)
public WriteBatchImpl delete(byte[] key)
delete in interface WriteBatchpublic WriteBatchImpl delete(Slice key)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void forEach(WriteBatchImpl.Handler handler)
Copyright © 2011–2019. All rights reserved.