Class MultiTableBatchWriterImpl
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.MultiTableBatchWriterImpl
-
- All Implemented Interfaces:
AutoCloseable,MultiTableBatchWriter
public class MultiTableBatchWriterImpl extends Object implements MultiTableBatchWriter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Flush and release all resources.voidflush()Send mutations for all tables to accumulo.BatchWritergetBatchWriter(String tableName)Returns a BatchWriter for a particular table.booleanisClosed()Returns true if this batch writer has been closed.
-
-
-
Method Detail
-
isClosed
public boolean isClosed()
Description copied from interface:MultiTableBatchWriterReturns true if this batch writer has been closed.- Specified by:
isClosedin interfaceMultiTableBatchWriter- Returns:
- true if this batch writer has been closed
-
close
public void close() throws MutationsRejectedExceptionDescription copied from interface:MultiTableBatchWriterFlush and release all resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMultiTableBatchWriter- Throws:
MutationsRejectedException- when queued mutations are unable to be inserted
-
getBatchWriter
public BatchWriter getBatchWriter(String tableName) throws TableNotFoundException
Description copied from interface:MultiTableBatchWriterReturns a BatchWriter for a particular table.- Specified by:
getBatchWriterin interfaceMultiTableBatchWriter- Parameters:
tableName- the name of a table whose batch writer you wish to retrieve- Returns:
- an instance of a batch writer for the specified table
- Throws:
TableNotFoundException- when the table does not exist
-
flush
public void flush() throws MutationsRejectedExceptionDescription copied from interface:MultiTableBatchWriterSend mutations for all tables to accumulo.- Specified by:
flushin interfaceMultiTableBatchWriter- Throws:
MutationsRejectedException- when queued mutations are unable to be inserted
-
-