public class TabletServerBatchReader extends ScannerOptions implements BatchScanner
batchTimeOut, classLoaderContext, executionHints, fetchedColumns, serverSideIteratorList, serverSideIteratorOptions, timeOut
Constructor and Description |
---|
TabletServerBatchReader(ClientContext context,
Table.ID tableId,
Authorizations authorizations,
int numQueryThreads) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes any underlying connections on the scanner.
|
protected void |
finalize() |
Authorizations |
getAuthorizations()
Returns the authorizations that have been set 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.
|
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getFetchedColumns, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setClassLoaderContext, setExecutionHints, setOptions, setSamplerConfiguration, setTimeout, updateScanIteratorOption
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setTimeout
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setClassLoaderContext, setExecutionHints, setSamplerConfiguration, updateScanIteratorOption
forEach, spliterator
public TabletServerBatchReader(ClientContext context, Table.ID tableId, Authorizations authorizations, int numQueryThreads)
public void close()
ScannerBase
close
in interface AutoCloseable
close
in interface BatchScanner
close
in interface ScannerBase
close
in class ScannerOptions
public Authorizations getAuthorizations()
ScannerBase
getAuthorizations
in interface ScannerBase
getAuthorizations
in class ScannerOptions
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
Keys returned by the iterator are not guaranteed to be in sorted order.
iterator
in interface Iterable<Map.Entry<Key,Value>>
iterator
in interface ScannerBase
iterator
in class ScannerOptions
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.