public interface BatchScanner extends ScannerBase
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes any underlying connections on the scanner
|
void |
setRanges(Collection<Range> ranges)
Allows scanning over multiple ranges efficiently.
|
void |
setTimeout(long timeout,
TimeUnit timeUnit)
This setting determines how long a scanner will automatically retry when a failure occurs.
|
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getAuthorizations, getTimeout, iterator, removeScanIterator, updateScanIteratorOption
void setRanges(Collection<Range> ranges)
ranges
- specifies the non-overlapping ranges to queryvoid close()
ScannerBase
close
in interface ScannerBase
void setTimeout(long timeout, TimeUnit timeUnit)
Setting the timeout to zero (with any time unit) or Long.MAX_VALUE
(with TimeUnit.MILLISECONDS
) means no timeout.
The batch scanner will accomplish as much work as possible before throwing an exception. BatchScanner iterators will throw a TimedOutException
when
all needed servers timeout.
setTimeout
in interface ScannerBase
timeout
- the length of the timeouttimeUnit
- the units of the timeoutCopyright © 2015 Apache Accumulo Project. All rights reserved.