public class MockBatchDeleter extends MockBatchScanner implements BatchDeleter
BatchDeleter
for a MockAccumulo
instance. Behaves similarly to a regular BatchDeleter
, with a few exceptions:
auths, table
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the ranges specified by
BatchDeleter.setRanges(java.util.Collection<org.apache.accumulo.core.data.Range>) . |
close, iterator, setRanges
createFilter
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, getTimeout, removeScanIterator, setOptions, setTimeout, updateScanIteratorOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, setRanges
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, getTimeout, iterator, removeScanIterator, setTimeout, updateScanIteratorOption
forEach, spliterator
setTimeout
public MockBatchDeleter(MockAccumulo acc, String tableName, Authorizations auths)
BatchDeleter
for the specified instance on the specified table where the writer uses the specified Authorizations
.public void delete() throws MutationsRejectedException, TableNotFoundException
BatchDeleter
BatchDeleter.setRanges(java.util.Collection<org.apache.accumulo.core.data.Range>)
.delete
in interface BatchDeleter
MutationsRejectedException
- this can be thrown when deletion mutations failTableNotFoundException
- when the table does not existCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.