|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.accumulo.core.client.impl.MultiTableBatchWriterImpl
public class MultiTableBatchWriterImpl
| Constructor Summary | |
|---|---|
MultiTableBatchWriterImpl(Instance instance,
AuthInfo credentials,
long maxMemory,
long maxLatency,
int maxWriteThreads)
|
|
| Method Summary | |
|---|---|
void |
close()
Flush and release all resources. |
void |
flush()
Send mutations for all tables to accumulo. |
BatchWriter |
getBatchWriter(String tableName)
Returns a BatchWriter for a particular table. |
boolean |
isClosed()
Returns true if this batch writer has been closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiTableBatchWriterImpl(Instance instance,
AuthInfo credentials,
long maxMemory,
long maxLatency,
int maxWriteThreads)
| Method Detail |
|---|
public boolean isClosed()
MultiTableBatchWriter
isClosed in interface MultiTableBatchWriter
public void close()
throws MutationsRejectedException
MultiTableBatchWriter
close in interface MultiTableBatchWriterMutationsRejectedException - when queued mutations are unable to be inserted
public BatchWriter getBatchWriter(String tableName)
throws AccumuloException,
AccumuloSecurityException,
TableNotFoundException
MultiTableBatchWriter
getBatchWriter in interface MultiTableBatchWritertableName - 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
public void flush()
throws MutationsRejectedException
MultiTableBatchWriter
flush in interface MultiTableBatchWriterMutationsRejectedException - when queued mutations are unable to be inserted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||