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
A class that wraps a Scanner in a SortedKeyValueIterator so that other accumulo iterators can use it as a source.
|
| Constructor and Description |
|---|
ClientSideIteratorScanner(Scanner scanner)
Constructs a scanner that can execute client-side iterators.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableIsolation()
Disables row isolation.
|
void |
enableIsolation()
Enables row isolation.
|
int |
getBatchSize()
Returns the batch size (number of Key/Value pairs) that will be fetched at a time from a tablet server.
|
Range |
getRange()
Returns the range of keys to scan over.
|
int |
getTimeOut()
Returns the setting for how long a scanner will automatically retry when a failure occurs.
|
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 |
setRange(Range range)
Sets the range of keys to scan over.
|
void |
setSource(Scanner scanner)
Sets the source Scanner.
|
void |
setTimeOut(int timeOut)
This setting determines how long a scanner will automatically retry when a failure occurs.
|
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setOptions, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, updateScanIteratorOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, updateScanIteratorOptionpublic ClientSideIteratorScanner(Scanner scanner)
scanner - the source scannerpublic void setSource(Scanner scanner)
scanner - public Iterator<Map.Entry<Key,Value>> iterator()
ScannerBasepublic void setTimeOut(int timeOut)
ScannersetTimeOut in interface ScannertimeOut - in secondspublic 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 ScannerCopyright © 2016 The Apache Software Foundation. All Rights Reserved.