public class MockBatchScanner extends MockScannerBase implements BatchScanner
auths, table| Constructor and Description |
|---|
MockBatchScanner(MockTable mockTable,
Authorizations authorizations) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any underlying connections on the scanner
|
Iterator<Map.Entry<Key,Value>> |
iterator()
Returns an iterator over an accumulo table.
|
void |
setRanges(Collection<Range> ranges)
Allows scanning over multiple ranges efficiently.
|
createFilter, getAuthorizationsaddScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, getTimeout, removeScanIterator, setOptions, setTimeout, updateScanIteratorOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetTimeoutaddScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getAuthorizations, getTimeout, removeScanIterator, updateScanIteratorOptionforEach, spliteratorpublic MockBatchScanner(MockTable mockTable, Authorizations authorizations)
public void setRanges(Collection<Range> ranges)
BatchScannersetRanges in interface BatchScannerranges - specifies the non-overlapping ranges to querypublic Iterator<Map.Entry<Key,Value>> iterator()
ScannerBaseKeys returned by the iterator are not guaranteed to be in sorted order.
iterator in interface Iterable<Map.Entry<Key,Value>>iterator in interface ScannerBaseiterator in class MockScannerBasepublic void close()
ScannerBaseclose in interface BatchScannerclose in interface ScannerBaseclose in class org.apache.accumulo.core.client.impl.ScannerOptionsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.