|
||||||||||
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 |
void |
setRanges(Collection<Range> ranges)
Allows scanning over multiple ranges efficiently. |
void |
setTimeout(long timeout,
TimeUnit timeUnit)
Sets a timeout threshold for a server to respond. |
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase |
---|
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, getTimeout, iterator, removeScanIterator, updateScanIteratorOption |
Method Detail |
---|
void setRanges(Collection<Range> ranges)
ranges
- specifies the non-overlapping ranges to queryvoid close()
close
in interface ScannerBase
void setTimeout(long timeout, TimeUnit timeUnit)
TimedOutException
when all needed servers timeout. Setting the timeout to zero or Long.MAX_VALUE and TimeUnit.MILLISECONDS
means no timeout.
If not set, there is not timeout. The BatchScanner will retry forever.
setTimeout
in interface ScannerBase
timeout
- timeUnit
- determines how timeout is interpreted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |