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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Flush and release all resources.voidflush()Deprecated.Send mutations for all tables to accumulo.getBatchWriter(String table) Deprecated.Returns a BatchWriter for a particular table.booleanisClosed()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:MultiTableBatchWriterReturns a BatchWriter for a particular table.- Specified by:
getBatchWriterin 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:MultiTableBatchWriterSend mutations for all tables to accumulo.- Specified by:
flushin interfaceMultiTableBatchWriter- Throws:
MutationsRejectedException- when queued mutations are unable to be inserted
-
close
Deprecated.Description copied from interface:MultiTableBatchWriterFlush and release all resources.- Specified by:
closein interfaceMultiTableBatchWriter- Throws:
MutationsRejectedException- when queued mutations are unable to be inserted
-
isClosed
public boolean isClosed()Deprecated.Description copied from interface:MultiTableBatchWriterReturns true if this batch writer has been closed.- Specified by:
isClosedin interfaceMultiTableBatchWriter- Returns:
- true if this batch writer has been closed
-