Class MockBatchWriter
java.lang.Object
org.apache.accumulo.core.client.mock.MockBatchWriter
- All Implemented Interfaces:
 AutoCloseable,BatchWriter
Deprecated.
since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Queues one mutation to write.voidaddMutations(Iterable<Mutation> iterable) Deprecated.Queues several mutations to write.voidclose()Deprecated.Flush and release any resources.voidflush()Deprecated.Send any buffered mutations to Accumulo immediately. 
- 
Method Details
- 
addMutation
Deprecated.Description copied from interface:BatchWriterQueues one mutation to write.- Specified by:
 addMutationin interfaceBatchWriter- Parameters:
 m- the mutation to add- Throws:
 MutationsRejectedException- this could be thrown because current or previous mutations failed
 - 
addMutations
Deprecated.Description copied from interface:BatchWriterQueues several mutations to write.- Specified by:
 addMutationsin interfaceBatchWriter- Parameters:
 iterable- allows adding any number of mutations iteratively- Throws:
 MutationsRejectedException- this could be thrown because current or previous mutations failed
 - 
flush
Deprecated.Description copied from interface:BatchWriterSend any buffered mutations to Accumulo immediately.- Specified by:
 flushin interfaceBatchWriter- Throws:
 MutationsRejectedException- this could be thrown because current or previous mutations failed
 - 
close
Deprecated.Description copied from interface:BatchWriterFlush and release any resources.- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceBatchWriter- Throws:
 MutationsRejectedException- this could be thrown because current or previous mutations failed
 
 -