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, tableFields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
batchTimeout, classLoaderContext, fetchedColumns, retryTimeout, serverSideIteratorList, serverSideIteratorOptions -
Constructor Summary
ConstructorsConstructorDescriptionMockBatchDeleter(MockAccumulo acc, String tableName, Authorizations auths) Deprecated.Create aBatchDeleterfor the specified instance on the specified table where the writer uses the specifiedAuthorizations. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()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, setRangesMethods inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
createFilter, getAuthorizations, setClassLoaderContextMethods 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, updateScanIteratorOptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.accumulo.core.client.BatchDeleter
close, setRangesMethods inherited from interface org.apache.accumulo.core.client.BatchScanner
setTimeoutMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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 aBatchDeleterfor the specified instance on the specified table where the writer uses the specifiedAuthorizations.
-
-
Method Details
-
delete
Deprecated.Description copied from interface:BatchDeleterDeletes the ranges specified byBatchDeleter.setRanges(java.util.Collection<org.apache.accumulo.core.data.Range>).- Specified by:
deletein interfaceBatchDeleter- Throws:
MutationsRejectedException- this can be thrown when deletion mutations failTableNotFoundException- when the table does not exist
-