public class TabletServerBatchReader extends ScannerOptions implements BatchScanner
fetchedColumns, serverSideIteratorList, serverSideIteratorOptions
Constructor and Description |
---|
TabletServerBatchReader(Instance instance,
AuthInfo credentials,
String table,
Authorizations authorizations,
int numQueryThreads) |
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.
|
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 TabletServerBatchReader(Instance instance, AuthInfo credentials, String table, Authorizations authorizations, int numQueryThreads)
public void close()
BatchScanner
close
in interface BatchScanner
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 ScannerOptions
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.