org.apache.accumulo.core.client.impl
public class ScannerImpl extends ScannerOptions implements Scanner
fetchedColumns, serverSideIteratorList, serverSideIteratorOptions, timeOut| Constructor and Description |
|---|
ScannerImpl(Instance instance,
Credentials credentials,
String table,
Authorizations authorizations) |
| 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.
|
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 |
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 |
setTimeOut(int timeOut)
Deprecated.
|
addScanIterator, clearColumns, clearScanIterators, close, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, getTimeout, removeScanIterator, setOptions, setTimeout, updateScanIteratorOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddScanIterator, clearColumns, clearScanIterators, close, fetchColumn, fetchColumnFamily, getTimeout, removeScanIterator, setTimeout, updateScanIteratorOptionpublic ScannerImpl(Instance instance, Credentials credentials, String table, Authorizations authorizations)
public 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 Iterator<Map.Entry<Key,Value>> iterator()
iterator in interface Iterable<Map.Entry<Key,Value>>iterator in interface ScannerBaseiterator in class ScannerOptionspublic void enableIsolation()
ScannerenableIsolation in interface Scannerpublic void disableIsolation()
ScannerdisableIsolation in interface Scanner@Deprecated public void setTimeOut(int timeOut)
ScannersetTimeOut in interface ScannertimeOut - in seconds@Deprecated public int getTimeOut()
ScannergetTimeOut in interface Scannerpublic void setReadaheadThreshold(long batches)
ScannerScanner will begin to prefetch the next batchsetReadaheadThreshold in interface Scannerbatches - Non-negative number of batchespublic long getReadaheadThreshold()
ScannerScanner will begin to prefetch the next batchgetReadaheadThreshold in interface ScannerCopyright © 2014 Apache Accumulo Project. All rights reserved.