|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.impl.BatchWriterImpl
public class BatchWriterImpl
Constructor Summary | |
---|---|
BatchWriterImpl(Instance instance,
Credentials credentials,
String table,
BatchWriterConfig config)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchWriterImpl(Instance instance, Credentials credentials, String table, BatchWriterConfig config)
Method Detail |
---|
public void addMutation(Mutation m) throws MutationsRejectedException
BatchWriter
addMutation
in interface BatchWriter
m
- the mutation to add
MutationsRejectedException
- this could be thrown because current or previous mutations failedpublic void addMutations(Iterable<Mutation> iterable) throws MutationsRejectedException
BatchWriter
addMutations
in interface BatchWriter
iterable
- allows adding any number of mutations iteratively
MutationsRejectedException
- this could be thrown because current or previous mutations failedpublic void close() throws MutationsRejectedException
BatchWriter
close
in interface BatchWriter
MutationsRejectedException
- this could be thrown because current or previous mutations failedpublic void flush() throws MutationsRejectedException
BatchWriter
flush
in interface BatchWriter
MutationsRejectedException
- this could be thrown because current or previous mutations failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |