@Deprecated public class MockMultiTableBatchWriter extends Object implements MultiTableBatchWriter
Constructor and Description |
---|
MockMultiTableBatchWriter(MockAccumulo acu)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Flush and release all resources.
|
void |
flush()
Deprecated.
Send mutations for all tables to accumulo.
|
BatchWriter |
getBatchWriter(String table)
Deprecated.
Returns a BatchWriter for a particular table.
|
boolean |
isClosed()
Deprecated.
Returns true if this batch writer has been closed.
|
public MockMultiTableBatchWriter(MockAccumulo acu)
public BatchWriter getBatchWriter(String table) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
MultiTableBatchWriter
getBatchWriter
in interface MultiTableBatchWriter
table
- 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 insertedpublic void close() throws MutationsRejectedException
MultiTableBatchWriter
close
in interface MultiTableBatchWriter
MutationsRejectedException
- when queued mutations are unable to be insertedpublic boolean isClosed()
MultiTableBatchWriter
isClosed
in interface MultiTableBatchWriter
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.