|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.impl.ScannerOptions
public class ScannerOptions
Field Summary | |
---|---|
protected SortedSet<Column> |
fetchedColumns
|
protected List<IterInfo> |
serverSideIteratorList
|
protected Map<String,Map<String,String>> |
serverSideIteratorOptions
|
protected long |
timeOut
|
Constructor Summary | |
---|---|
protected |
ScannerOptions()
|
|
ScannerOptions(ScannerOptions so)
|
Method Summary | |
---|---|
void |
addScanIterator(IteratorSetting si)
Adds server-side scan iterators. |
void |
clearColumns()
Clears the columns to be fetched (useful for resetting the scanner for reuse). |
void |
clearScanIterators()
Clears scan iterators prior to returning a scanner to the pool. |
void |
close()
Closes any underlying connections on the scanner |
void |
fetchColumn(Column column)
|
void |
fetchColumn(org.apache.hadoop.io.Text colFam,
org.apache.hadoop.io.Text colQual)
Adds a column to the list of columns that will be fetched by this scanner. |
void |
fetchColumnFamily(org.apache.hadoop.io.Text col)
Limit a scan to the specified column family. |
SortedSet<Column> |
getFetchedColumns()
|
long |
getTimeout(TimeUnit timeunit)
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 |
removeScanIterator(String iteratorName)
Remove an iterator from the list of iterators. |
protected static void |
setOptions(ScannerOptions dst,
ScannerOptions src)
|
void |
setTimeout(long timeout,
TimeUnit timeUnit)
This setting determines how long a scanner will automatically retry when a failure occurs. |
void |
updateScanIteratorOption(String iteratorName,
String key,
String value)
Override any existing options on the given named iterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<IterInfo> serverSideIteratorList
protected Map<String,Map<String,String>> serverSideIteratorOptions
protected SortedSet<Column> fetchedColumns
protected long timeOut
Constructor Detail |
---|
protected ScannerOptions()
public ScannerOptions(ScannerOptions so)
Method Detail |
---|
public void addScanIterator(IteratorSetting si)
addScanIterator
in interface ScannerBase
si
- fully specified scan-time iterator, including all options for the iterator. Any changes to the iterator setting after this call are not propagated
to the stored iterator.public void removeScanIterator(String iteratorName)
ScannerBase
removeScanIterator
in interface ScannerBase
iteratorName
- nickname used for the iteratorpublic void updateScanIteratorOption(String iteratorName, String key, String value)
updateScanIteratorOption
in interface ScannerBase
iteratorName
- the name of the iterator to changekey
- the name of the optionvalue
- the new value for the named optionpublic void fetchColumnFamily(org.apache.hadoop.io.Text col)
fetchColumnFamily
in interface ScannerBase
col
- the column family to be fetchedpublic void fetchColumn(org.apache.hadoop.io.Text colFam, org.apache.hadoop.io.Text colQual)
ScannerBase
fetchColumn
in interface ScannerBase
colFam
- the column family of the column to be fetchedcolQual
- the column qualifier of the column to be fetchedpublic void fetchColumn(Column column)
public void clearColumns()
ScannerBase
clearColumns
in interface ScannerBase
public SortedSet<Column> getFetchedColumns()
public void clearScanIterators()
clearScanIterators
in interface ScannerBase
protected static void setOptions(ScannerOptions dst, ScannerOptions src)
public Iterator<Map.Entry<Key,Value>> iterator()
ScannerBase
iterator
in interface Iterable<Map.Entry<Key,Value>>
iterator
in interface ScannerBase
public void setTimeout(long timeout, TimeUnit timeUnit)
ScannerBase
setTimeout
in interface ScannerBase
timeUnit
- determines how timeout is interpretedpublic long getTimeout(TimeUnit timeunit)
ScannerBase
getTimeout
in interface ScannerBase
public void close()
ScannerBase
close
in interface ScannerBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |