org.apache.accumulo.core.client
Interface BatchScanner

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

public interface BatchScanner
extends ScannerBase

Implementations of BatchScanner support efficient lookups of many ranges in accumulo. Use this when looking up lots of ranges and you expect each range to contain a small amount of data. Also only use this when you do not care about the returned data being in sorted order. If you want to lookup a few ranges and expect those ranges to contain a lot of data, then use the Scanner instead. Also, the Scanner will return data in sorted order, this will not.


Method Summary
 void close()
          Cleans up and finalizes the scanner
 void setRanges(Collection<Range> ranges)
          Allows scanning over multiple ranges efficiently.
 
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, iterator, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, updateScanIteratorOption
 

Method Detail

setRanges

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

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

close

void close()
Cleans up and finalizes the scanner



Copyright © 2013 The Apache Software Foundation. All Rights Reserved.