@Deprecated 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)
Deprecated.
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()
Deprecated.
Deletes the ranges specified by
BatchDeleter.setRanges(java.util.Collection<org.apache.accumulo.core.data.Range>) . |
close, iterator, setRanges
createFilter, getAuthorizations, setClassLoaderContext
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getFetchedColumns, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setOptions, setSamplerConfiguration, setTimeout, updateScanIteratorOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, setRanges
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getAuthorizations, getBatchTimeout, getClassLoaderContext, getSamplerConfiguration, getTimeout, iterator, removeScanIterator, setBatchTimeout, setClassLoaderContext, setSamplerConfiguration, setTimeout, updateScanIteratorOption
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–2017 The Apache Software Foundation. All rights reserved.