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:
AutoCloseable
,Iterable<Map.Entry<Key,
,Value>> BatchDeleter
,BatchScanner
,ScannerBase
Deprecated.
since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
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
-
Field Summary
Fields inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
auths, table
Fields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
batchTimeout, classLoaderContext, fetchedColumns, retryTimeout, serverSideIteratorList, serverSideIteratorOptions
-
Constructor Summary
ConstructorDescriptionMockBatchDeleter
(MockAccumulo acc, String tableName, Authorizations auths) Deprecated.Create aBatchDeleter
for the specified instance on the specified table where the writer uses the specifiedAuthorizations
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deprecated.Deletes the ranges specified byBatchDeleter.setRanges(java.util.Collection<org.apache.accumulo.core.data.Range>)
.Methods inherited from class org.apache.accumulo.core.client.mock.MockBatchScanner
close, iterator, setRanges
Methods inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
createFilter, getAuthorizations, setClassLoaderContext
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getFetchedColumns, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setOptions, setSamplerConfiguration, setTimeout, updateScanIteratorOption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.accumulo.core.client.BatchDeleter
close, setRanges
Methods inherited from interface org.apache.accumulo.core.client.BatchScanner
setTimeout
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getAuthorizations, getBatchTimeout, getClassLoaderContext, getSamplerConfiguration, getTimeout, iterator, removeScanIterator, setBatchTimeout, setClassLoaderContext, setSamplerConfiguration, updateScanIteratorOption
-
Constructor Details
-
MockBatchDeleter
Deprecated.Create aBatchDeleter
for the specified instance on the specified table where the writer uses the specifiedAuthorizations
.
-
-
Method Details
-
delete
Deprecated.Description copied from interface:BatchDeleter
Deletes the ranges specified byBatchDeleter.setRanges(java.util.Collection<org.apache.accumulo.core.data.Range>)
.- Specified by:
delete
in interfaceBatchDeleter
- Throws:
MutationsRejectedException
- this can be thrown when deletion mutations failTableNotFoundException
- when the table does not exist
-