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 TypeMethodDescriptionvoid
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.
-
Method Details
-
addMutation
Deprecated.Description copied from interface:BatchWriter
Queues one mutation to write.- Specified by:
addMutation
in 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:BatchWriter
Queues several mutations to write.- Specified by:
addMutations
in 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:BatchWriter
Send any buffered mutations to Accumulo immediately.- Specified by:
flush
in interfaceBatchWriter
- Throws:
MutationsRejectedException
- this could be thrown because current or previous mutations failed
-
close
Deprecated.Description copied from interface:BatchWriter
Flush and release any resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBatchWriter
- Throws:
MutationsRejectedException
- this could be thrown because current or previous mutations failed
-