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 |
append(WriteBatchImpl batch) |
void |
clear() |
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()
getApproximateSize in interface WriteBatchpublic int size()
size in interface WriteBatchpublic 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)
public void append(WriteBatchImpl batch)
public void clear()
Copyright © 2011–2020. All rights reserved.