public class MockMultiTableBatchWriter extends Object implements MultiTableBatchWriter
| Constructor and Description |
|---|
MockMultiTableBatchWriter(MockAccumulo acu) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flush and release all resources.
|
void |
flush()
Send mutations for all tables to accumulo.
|
BatchWriter |
getBatchWriter(String table)
Returns a BatchWriter for a particular table.
|
boolean |
isClosed()
Returns true if this batch writer has been closed.
|
public MockMultiTableBatchWriter(MockAccumulo acu)
public BatchWriter getBatchWriter(String table) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
MultiTableBatchWritergetBatchWriter in interface MultiTableBatchWritertable - the name of a table whose batch writer you wish to retrieveAccumuloException - when a general exception occurs with accumuloAccumuloSecurityException - when the user is not allowed to insert data into that tableTableNotFoundException - when the table does not existpublic void flush()
throws MutationsRejectedException
MultiTableBatchWriterflush in interface MultiTableBatchWriterMutationsRejectedException - when queued mutations are unable to be insertedpublic void close()
throws MutationsRejectedException
MultiTableBatchWriterclose in interface MultiTableBatchWriterMutationsRejectedException - when queued mutations are unable to be insertedpublic boolean isClosed()
MultiTableBatchWriterisClosed in interface MultiTableBatchWriterCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.