public interface BatchWriter
Modifier and Type | Method and Description |
---|---|
void |
addMutation(Mutation m)
Queues one mutation to write.
|
void |
addMutations(Iterable<Mutation> iterable)
Queues several mutations to write.
|
void |
close()
Flush and release any resources.
|
void |
flush()
Send any buffered mutations to Accumulo immediately.
|
void addMutation(Mutation m) throws MutationsRejectedException
m
- the mutation to addMutationsRejectedException
- this could be thrown because current or previous mutations failedvoid addMutations(Iterable<Mutation> iterable) throws MutationsRejectedException
iterable
- allows adding any number of mutations iterativelyMutationsRejectedException
- this could be thrown because current or previous mutations failedvoid flush() throws MutationsRejectedException
MutationsRejectedException
- this could be thrown because current or previous mutations failedvoid close() throws MutationsRejectedException
MutationsRejectedException
- this could be thrown because current or previous mutations failedCopyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.