Package org.apache.accumulo.core.client
Interface BatchDeleter
- All Superinterfaces:
AutoCloseable
,Iterable<Map.Entry<Key,
,Value>> ScannerBase
- All Known Implementing Classes:
MockBatchDeleter
Implementations of BatchDeleter support efficient deletion of ranges in accumulo.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes any underlying connections on the scanner.void
delete()
Deletes the ranges specified bysetRanges(java.util.Collection<org.apache.accumulo.core.data.Range>)
.void
setRanges
(Collection<Range> ranges) Allows deleting multiple ranges efficiently.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, setTimeout, updateScanIteratorOption
-
Method Details
-
delete
Deletes the ranges specified bysetRanges(java.util.Collection<org.apache.accumulo.core.data.Range>)
.- Throws:
MutationsRejectedException
- this can be thrown when deletion mutations failTableNotFoundException
- when the table does not exist
-
setRanges
Allows deleting multiple ranges efficiently.- Parameters:
ranges
- specifies the non-overlapping ranges to query
-
close
void close()Description copied from interface:ScannerBase
Closes any underlying connections on the scanner. This may invalidate any iterators derived from the Scanner, causing them to throw exceptions.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceScannerBase
-