org.apache.accumulo.core.client.impl
public class BatchWriterImpl extends Object implements BatchWriter
| Constructor and Description |
|---|
BatchWriterImpl(Instance instance,
Credentials credentials,
String table,
BatchWriterConfig config) |
| 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.
|
public BatchWriterImpl(Instance instance, Credentials credentials, String table, BatchWriterConfig config)
public void addMutation(Mutation m) throws MutationsRejectedException
BatchWriteraddMutation in interface BatchWriterm - the mutation to addMutationsRejectedException - this could be thrown because current or previous mutations failedpublic void addMutations(Iterable<Mutation> iterable) throws MutationsRejectedException
BatchWriteraddMutations in interface BatchWriteriterable - allows adding any number of mutations iterativelyMutationsRejectedException - this could be thrown because current or previous mutations failedpublic void close()
throws MutationsRejectedException
BatchWriterclose in interface BatchWriterMutationsRejectedException - this could be thrown because current or previous mutations failedpublic void flush()
throws MutationsRejectedException
BatchWriterflush in interface BatchWriterMutationsRejectedException - this could be thrown because current or previous mutations failedCopyright © 2014 Apache Accumulo Project. All rights reserved.