|
||||||||||
| 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 resources 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(String table)
Returns a BatchWriter for a particular table. |
boolean |
isClosed()
Returns true if this batch writer has been closed. |
| Method Detail |
|---|
BatchWriter getBatchWriter(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 exist
void flush()
throws MutationsRejectedException
MutationsRejectedException - when queued mutations are unable to be inserted
void 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 | |||||||||