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|
Closes any underlying connections on the scanner
Allows scanning over multiple ranges efficiently.
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 query
void setTimeout(long timeout, TimeUnit timeUnit)
The batch scanner will accomplish as much work as possible before throwing an exception. BatchScanner iterators will throw a
all needed servers timeout.
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.