|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BatchScanner
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 |
java.util.Iterator<java.util.Map.Entry<Key,Value>> |
iterator()
Returns an iterator over an accumulo table. |
void |
setRanges(java.util.Collection<Range> ranges)
Allows scanning over multiple ranges efficiently. |
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase |
---|
clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex |
Method Detail |
---|
void setRanges(java.util.Collection<Range> ranges)
ranges
- specifies the non-overlapping ranges to queryjava.util.Iterator<java.util.Map.Entry<Key,Value>> iterator()
iterator
in interface java.lang.Iterable<java.util.Map.Entry<Key,Value>>
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |