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()
Cleans up and finalizes 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
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setOptions, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, updateScanIteratorOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, updateScanIteratorOption
public MockBatchScanner(MockTable mockTable, Authorizations authorizations)
public void setRanges(Collection<Range> ranges)
BatchScanner
setRanges
in interface BatchScanner
ranges
- specifies the non-overlapping ranges to querypublic Iterator<Map.Entry<Key,Value>> iterator()
ScannerBase
iterator
in interface Iterable<Map.Entry<Key,Value>>
iterator
in interface ScannerBase
iterator
in class MockScannerBase
public void close()
BatchScanner
close
in interface BatchScanner
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.