@Deprecated public class MockBatchWriter extends Object implements BatchWriter
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMutation(Mutation m)
Deprecated.  
Queues one mutation to write. 
 | 
void | 
addMutations(Iterable<Mutation> iterable)
Deprecated.  
Queues several mutations to write. 
 | 
void | 
close()
Deprecated.  
Flush and release any resources. 
 | 
void | 
flush()
Deprecated.  
Send any buffered mutations to Accumulo immediately. 
 | 
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 flush()
           throws MutationsRejectedException
BatchWriterflush in interface BatchWriterMutationsRejectedException - this could be thrown because current or previous mutations failedpublic void close()
           throws MutationsRejectedException
BatchWriterclose in interface AutoCloseableclose in interface BatchWriterMutationsRejectedException - this could be thrown because current or previous mutations failedCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.