Class MockBatchWriter
- java.lang.Object
-
- org.apache.accumulo.core.client.mock.MockBatchWriter
-
- All Implemented Interfaces:
AutoCloseable
,BatchWriter
@Deprecated public class MockBatchWriter extends Object implements BatchWriter
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
addMutation
public void addMutation(Mutation m) throws MutationsRejectedException
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
public void addMutations(Iterable<Mutation> iterable) throws MutationsRejectedException
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
public void flush() throws MutationsRejectedException
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
public void close() throws MutationsRejectedException
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
-
-