public interface BatchScanner extends ScannerBase
Scannerin use cases such as
Scannerinstead 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|
Cleans up and finalizes the scanner
Allows scanning over multiple ranges efficiently.
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 query
void setTimeout(long timeout, TimeUnit timeUnit)
TimedOutExceptionwhen 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.
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.