Class MockMultiTableBatchWriter
- java.lang.Object
-
- org.apache.accumulo.core.client.mock.MockMultiTableBatchWriter
-
- All Implemented Interfaces:
MultiTableBatchWriter
@Deprecated public class MockMultiTableBatchWriter extends Object implements MultiTableBatchWriter
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
-
-
Constructor Summary
Constructors Constructor Description MockMultiTableBatchWriter(MockAccumulo acu)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Flush and release all resources.void
flush()
Deprecated.Send mutations for all tables to accumulo.BatchWriter
getBatchWriter(String table)
Deprecated.Returns a BatchWriter for a particular table.boolean
isClosed()
Deprecated.Returns true if this batch writer has been closed.
-
-
-
Constructor Detail
-
MockMultiTableBatchWriter
public MockMultiTableBatchWriter(MockAccumulo acu)
Deprecated.
-
-
Method Detail
-
getBatchWriter
public BatchWriter getBatchWriter(String table) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Deprecated.Description copied from interface:MultiTableBatchWriter
Returns a BatchWriter for a particular table.- Specified by:
getBatchWriter
in interfaceMultiTableBatchWriter
- Parameters:
table
- the name of a table whose batch writer you wish to retrieve- Returns:
- an instance of a batch writer for the specified table
- Throws:
AccumuloException
- when a general exception occurs with accumuloAccumuloSecurityException
- when the user is not allowed to insert data into that tableTableNotFoundException
- when the table does not exist
-
flush
public void flush() throws MutationsRejectedException
Deprecated.Description copied from interface:MultiTableBatchWriter
Send mutations for all tables to accumulo.- Specified by:
flush
in interfaceMultiTableBatchWriter
- Throws:
MutationsRejectedException
- when queued mutations are unable to be inserted
-
close
public void close() throws MutationsRejectedException
Deprecated.Description copied from interface:MultiTableBatchWriter
Flush and release all resources.- Specified by:
close
in interfaceMultiTableBatchWriter
- Throws:
MutationsRejectedException
- when queued mutations are unable to be inserted
-
isClosed
public boolean isClosed()
Deprecated.Description copied from interface:MultiTableBatchWriter
Returns true if this batch writer has been closed.- Specified by:
isClosed
in interfaceMultiTableBatchWriter
- Returns:
- true if this batch writer has been closed
-
-