public class ClientSideIteratorScanner extends org.apache.accumulo.core.client.impl.ScannerOptions implements Scanner
Scanner scanner = new ClientSideIteratorScanner(connector.createScanner(tableName, authorizations));| Modifier and Type | Class and Description |
|---|---|
class |
ClientSideIteratorScanner.ScannerTranslator
Deprecated.
since 1.7.0 was never intended for public use. However this could have been used by anything extending this class.
|
| Constructor and Description |
|---|
ClientSideIteratorScanner(Scanner scanner)
Constructs a scanner that can execute client-side iterators.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearIteratorSamplerConfiguration()
Clear any iterator sampler configuration.
|
void |
disableIsolation()
Disables row isolation.
|
void |
enableIsolation()
Enables row isolation.
|
Authorizations |
getAuthorizations()
Returns the authorizations that have been set on the scanner
|
int |
getBatchSize()
Returns the batch size (number of Key/Value pairs) that will be fetched at a time from a tablet server.
|
SamplerConfiguration |
getIteratorSamplerConfiguration() |
Range |
getRange()
Returns the range of keys to scan over.
|
long |
getReadaheadThreshold()
The number of batches of Key/Value pairs returned before the
Scanner will begin to prefetch the next batch |
int |
getTimeOut()
Deprecated.
|
Iterator<Map.Entry<Key,Value>> |
iterator()
Returns an iterator over an accumulo table.
|
void |
setBatchSize(int size)
Sets the number of Key/Value pairs that will be fetched at a time from a tablet server.
|
void |
setIteratorSamplerConfiguration(SamplerConfiguration sc)
This is provided for the case where no sampler configuration is set on the scanner, but there is a need to create iterator deep copies that have sampling
enabled.
|
void |
setRange(Range range)
Sets the range of keys to scan over.
|
void |
setReadaheadThreshold(long batches)
Sets the number of batches of Key/Value pairs returned before the
Scanner will begin to prefetch the next batch |
void |
setSource(Scanner scanner)
Sets the source Scanner.
|
void |
setTimeOut(int timeOut)
Deprecated.
|
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, close, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getFetchedColumns, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setClassLoaderContext, setOptions, setSamplerConfiguration, setTimeout, updateScanIteratorOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, close, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setClassLoaderContext, setSamplerConfiguration, setTimeout, updateScanIteratorOptionpublic ClientSideIteratorScanner(Scanner scanner)
scanner - the source scannerpublic void setSource(Scanner scanner)
public Iterator<Map.Entry<Key,Value>> iterator()
ScannerBaseKeys returned by the iterator are not guaranteed to be in sorted order.
public Authorizations getAuthorizations()
ScannerBasegetAuthorizations in interface ScannerBasegetAuthorizations in class org.apache.accumulo.core.client.impl.ScannerOptions@Deprecated public void setTimeOut(int timeOut)
ScannersetTimeOut in interface ScannertimeOut - in seconds@Deprecated public int getTimeOut()
ScannergetTimeOut in interface Scannerpublic void setRange(Range range)
Scannerpublic Range getRange()
Scannerpublic void setBatchSize(int size)
ScannersetBatchSize in interface Scannersize - the number of Key/Value pairs to fetch per call to Accumulopublic int getBatchSize()
ScannergetBatchSize in interface Scannerpublic void enableIsolation()
ScannerenableIsolation in interface Scannerpublic void disableIsolation()
ScannerdisableIsolation in interface Scannerpublic long getReadaheadThreshold()
ScannerScanner will begin to prefetch the next batchgetReadaheadThreshold in interface Scannerpublic void setReadaheadThreshold(long batches)
ScannerScanner will begin to prefetch the next batchsetReadaheadThreshold in interface Scannerbatches - Non-negative number of batchespublic void setIteratorSamplerConfiguration(SamplerConfiguration sc)
Setting this differently than the scanners sampler configuration may cause exceptions.
public void clearIteratorSamplerConfiguration()
public SamplerConfiguration getIteratorSamplerConfiguration()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.