|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiTableBatchWriter
This class enables efficient batch writing to multiple tables. When creating a batch writer for each table, each has its own memory and network resources. Using this class these resource may be shared among multiple tables.
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()
|
Method Detail |
---|
BatchWriter getBatchWriter(java.lang.String table) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
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 existvoid flush() throws MutationsRejectedException
MutationsRejectedException
- when queued mutations are unable to be insertedvoid close() throws MutationsRejectedException
MutationsRejectedException
- when queued mutations are unable to be insertedboolean isClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |