public class MultiTableBatchWriterImpl extends Object implements MultiTableBatchWriter
Constructor and Description |
---|
MultiTableBatchWriterImpl(Instance instance,
AuthInfo credentials,
long maxMemory,
long maxLatency,
int maxWriteThreads) |
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 tableName)
Returns a BatchWriter for a particular table.
|
boolean |
isClosed()
Returns true if this batch writer has been closed.
|
public boolean isClosed()
MultiTableBatchWriter
isClosed
in interface MultiTableBatchWriter
public void close() throws MutationsRejectedException
MultiTableBatchWriter
close
in interface MultiTableBatchWriter
MutationsRejectedException
- when queued mutations are unable to be insertedpublic BatchWriter getBatchWriter(String tableName) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
MultiTableBatchWriter
getBatchWriter
in interface MultiTableBatchWriter
tableName
- 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
MultiTableBatchWriter
flush
in interface MultiTableBatchWriter
MutationsRejectedException
- when queued mutations are unable to be insertedCopyright © 2012 The Apache Software Foundation. All Rights Reserved.