org.apache.accumulo.core.client.impl
Class MultiTableBatchWriterImpl
java.lang.Object
org.apache.accumulo.core.client.impl.MultiTableBatchWriterImpl
- All Implemented Interfaces:
- MultiTableBatchWriter
public class MultiTableBatchWriterImpl
- extends java.lang.Object
- implements MultiTableBatchWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiTableBatchWriterImpl
public MultiTableBatchWriterImpl(Instance instance,
AuthInfo credentials,
long maxMemory,
long maxLatency,
int maxWriteThreads)
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface MultiTableBatchWriter
- 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 interface MultiTableBatchWriter
- Throws:
MutationsRejectedException
- when queued mutations are unable to be inserted
getBatchWriter
public BatchWriter getBatchWriter(java.lang.String tableName)
throws AccumuloException,
AccumuloSecurityException,
TableNotFoundException
- Specified by:
getBatchWriter
in interface MultiTableBatchWriter
- 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:
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
flush
public void flush()
throws MutationsRejectedException
- Description copied from interface:
MultiTableBatchWriter
- Send mutations for all tables to accumulo.
- Specified by:
flush
in interface MultiTableBatchWriter
- Throws:
MutationsRejectedException
- when queued mutations are unable to be inserted
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.