|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.mock.MockMultiTableBatchWriter
public class MockMultiTableBatchWriter
Method Summary | |
---|---|
void |
close()
Flush and release all resources. |
void |
flush()
Send mutations for all tables to accumulo. |
BatchWriter |
getBatchWriter(java.lang.String table)
|
boolean |
isClosed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public BatchWriter getBatchWriter(java.lang.String table) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
getBatchWriter
in interface MultiTableBatchWriter
table
- the name of a table whose batch writer you wish to retrieve
AccumuloException
- when a general exception occurs with accumulo
AccumuloSecurityException
- when the user is not allowed to insert data into that table
TableNotFoundException
- when the table does not existpublic void flush() throws MutationsRejectedException
MultiTableBatchWriter
flush
in interface MultiTableBatchWriter
MutationsRejectedException
- when queued mutations are unable to be insertedpublic void close() throws MutationsRejectedException
MultiTableBatchWriter
close
in interface MultiTableBatchWriter
MutationsRejectedException
- when queued mutations are unable to be insertedpublic boolean isClosed()
isClosed
in interface MultiTableBatchWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |