Class MockMultiTableBatchWriter
java.lang.Object
org.apache.accumulo.core.client.mock.MockMultiTableBatchWriter
- All Implemented Interfaces:
MultiTableBatchWriter
Deprecated.
since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Flush and release all resources.void
flush()
Deprecated.Send mutations for all tables to accumulo.getBatchWriter
(String table) Deprecated.Returns a BatchWriter for a particular table.boolean
isClosed()
Deprecated.Returns true if this batch writer has been closed.
-
Constructor Details
-
MockMultiTableBatchWriter
Deprecated.
-
-
Method Details
-
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
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
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
-