org.apache.accumulo.core.client
Interface BatchDeleter

All Superinterfaces:
Iterable<Map.Entry<Key,Value>>, ScannerBase
All Known Implementing Classes:
MockBatchDeleter, TabletServerBatchDeleter

public interface BatchDeleter
extends ScannerBase

Implementations of BatchDeleter support efficient deletion of ranges in accumulo.


Method Summary
 void close()
          Releases any resources.
 void delete()
          Deletes the ranges specified by setRanges(java.util.Collection).
 void setRanges(Collection<Range> ranges)
          Allows deleting multiple ranges efficiently.
 
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, getTimeout, iterator, removeScanIterator, setTimeout, updateScanIteratorOption
 

Method Detail

delete

void delete()
            throws MutationsRejectedException,
                   TableNotFoundException
Deletes the ranges specified by setRanges(java.util.Collection).

Throws:
MutationsRejectedException - this can be thrown when deletion mutations fail
TableNotFoundException - when the table does not exist

setRanges

void setRanges(Collection<Range> ranges)
Allows deleting multiple ranges efficiently.

Parameters:
ranges - specifies the non-overlapping ranges to query

close

void close()
Releases any resources.

Specified by:
close in interface ScannerBase


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.