org.apache.accumulo.core.client
public interface BatchScanner extends ScannerBase
Scanner
in use cases such as
Scanner
instead when sorted order is
important.
A BatchScanner instance will use no more threads than provided in the construction of the BatchScanner implementation. Multiple invocations of
iterator()
will all share the same resources of the instance. A new BatchScanner instance should be created to use allocate additional threads.
Modifier and Type | Method and Description |
---|---|
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.
|
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, getTimeout, iterator, removeScanIterator, updateScanIteratorOption
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
timeUnit
- determines how timeout is interpretedCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.