org.apache.accumulo.core.client.mock
Class MockBatchDeleter
java.lang.Object
org.apache.accumulo.core.client.impl.ScannerOptions
org.apache.accumulo.core.client.mock.MockScannerBase
org.apache.accumulo.core.client.mock.MockBatchScanner
org.apache.accumulo.core.client.mock.MockBatchDeleter
- All Implemented Interfaces:
- Iterable<Map.Entry<Key,Value>>, BatchDeleter, BatchScanner, ScannerBase
public class MockBatchDeleter
- extends MockBatchScanner
- implements BatchDeleter
BatchDeleter
for a MockAccumulo
instance. Behaves similarly to a regular BatchDeleter
, with a few exceptions:
- There is no waiting for memory to fill before flushing
- Only one thread is used for writing
Otherwise, it behaves as expected.
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions |
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, getTimeout, removeScanIterator, setOptions, setTimeout, updateScanIteratorOption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockBatchDeleter
public MockBatchDeleter(MockAccumulo acc,
String tableName,
Authorizations auths)
- Create a
BatchDeleter
for the specified instance on the specified table where the writer uses the specified Authorizations
.
delete
public void delete()
throws MutationsRejectedException,
TableNotFoundException
- Description copied from interface:
BatchDeleter
- Deletes the ranges specified by
BatchDeleter.setRanges(java.util.Collection)
.
- Specified by:
delete
in interface BatchDeleter
- Throws:
MutationsRejectedException
- this can be thrown when deletion mutations fail
TableNotFoundException
- when the table does not exist
Copyright © 2015 Apache Accumulo Project. All rights reserved.