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 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.
-
-
-
Method Detail
-
isClosed
public boolean isClosed()
Description copied from interface:MultiTableBatchWriter
Returns true if this batch writer has been closed.- Specified by:
isClosed
in interfaceMultiTableBatchWriter
- Returns:
- true if this batch writer has been closed
-
close
public void close() throws MutationsRejectedException
Description copied from interface:MultiTableBatchWriter
Flush and release all resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMultiTableBatchWriter
- Throws:
MutationsRejectedException
- when queued mutations are unable to be inserted
-
getBatchWriter
public BatchWriter getBatchWriter(String tableName) throws TableNotFoundException
Description copied from interface:MultiTableBatchWriter
Returns a BatchWriter for a particular table.- Specified by:
getBatchWriter
in 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 MutationsRejectedException
Description copied from interface:MultiTableBatchWriter
Send mutations for all tables to accumulo.- Specified by:
flush
in interfaceMultiTableBatchWriter
- Throws:
MutationsRejectedException
- when queued mutations are unable to be inserted
-
-