|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.accumulo.server.monitor.servlets.trace.NullScanner
public class NullScanner
| Constructor Summary | |
|---|---|
NullScanner()
|
|
| Method Summary | |
|---|---|
void |
addScanIterator(IteratorSetting cfg)
Add a server-side scan iterator. |
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 |
disableIsolation()
Disables row isolation. |
void |
enableIsolation()
Enables row isolation. |
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)
Adds a column family to the list of columns that will be fetched by this scanner. |
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 |
removeScanIterator(String iteratorName)
Remove an iterator from the list of iterators. |
void |
setBatchSize(int size)
Sets the number of Key/Value pairs that will be fetched at a time from a tablet server. |
void |
setColumnFamilyRegex(String regex)
Set a column family regular expression that filters non matching entries server side. |
void |
setColumnQualifierRegex(String regex)
Use addScanIterator(int, ScanIterator); Set a column qualifier regular expression that filters non matching entries server side. |
void |
setRange(Range range)
Sets the range of keys to scan over. |
void |
setRowRegex(String regex)
Set a row regular expression that filters non matching entries server side. |
void |
setScanIteratorOption(String iteratorName,
String key,
String value)
|
void |
setScanIterators(int priority,
String iteratorClass,
String iteratorName)
|
void |
setTimeOut(int timeOut)
This setting determines how long a scanner will automatically retry when a failure occurs. |
void |
setupRegex(String iteratorName,
int iteratorPriority)
Call this method to initialize regular expressions on a scanner. |
void |
setValueRegex(String regex)
Set a value regular expression that filters non matching entries server side. |
void |
updateScanIteratorOption(String iteratorName,
String key,
String value)
Update the options for an iterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullScanner()
| Method Detail |
|---|
public void setScanIterators(int priority,
String iteratorClass,
String iteratorName)
setScanIterators in interface ScannerBasepublic void addScanIterator(IteratorSetting cfg)
ScannerBase
addScanIterator in interface ScannerBasecfg - 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 setScanIteratorOption(String iteratorName,
String key,
String value)
setScanIteratorOption in interface ScannerBase
public void updateScanIteratorOption(String iteratorName,
String key,
String value)
ScannerBase
updateScanIteratorOption in interface ScannerBaseiteratorName - the name of the iterator to changekey - the name of the optionvalue - the new value for the named option
public void setupRegex(String iteratorName,
int iteratorPriority)
throws IOException
ScannerBase
setupRegex in interface ScannerBaseiteratorName - a nickname for the iteratoriteratorPriority - determines the order in which iterators are applied (system iterators are always applied first, then per-table and scan-time, lowest first)
IOException - if an exception occurs reading from the iterator stackpublic void setRowRegex(String regex)
ScannerBase
setRowRegex in interface ScannerBaseregex - java regular expression to matchpublic void setColumnFamilyRegex(String regex)
ScannerBase
setColumnFamilyRegex in interface ScannerBaseregex - java regular expression to matchpublic void setColumnQualifierRegex(String regex)
ScannerBase
setColumnQualifierRegex in interface ScannerBaseregex - java regular expression to matchpublic void setValueRegex(String regex)
ScannerBase
setValueRegex in interface ScannerBaseregex - java regular expression to matchpublic void fetchColumnFamily(org.apache.hadoop.io.Text col)
ScannerBase
fetchColumnFamily in interface ScannerBasecol - the column family to be fetched
public void fetchColumn(org.apache.hadoop.io.Text colFam,
org.apache.hadoop.io.Text colQual)
ScannerBase
fetchColumn in interface ScannerBasecolFam - the column family of the column to be fetchedcolQual - the column qualifier of the column to be fetchedpublic void clearColumns()
ScannerBase
clearColumns in interface ScannerBasepublic void clearScanIterators()
ScannerBase
clearScanIterators in interface ScannerBasepublic void setTimeOut(int timeOut)
Scanner
setTimeOut in interface ScannertimeOut - in secondspublic int getTimeOut()
Scanner
getTimeOut in interface Scannerpublic void setRange(Range range)
Scanner
setRange in interface Scannerrange - key range to begin and end scanpublic Range getRange()
Scanner
getRange in interface Scannerpublic void setBatchSize(int size)
Scanner
setBatchSize in interface Scannersize - the number of Key/Value pairs to fetch per call to Accumulopublic int getBatchSize()
Scanner
getBatchSize in interface Scannerpublic void enableIsolation()
Scanner
enableIsolation in interface Scannerpublic void disableIsolation()
Scanner
disableIsolation in interface Scannerpublic Iterator<Map.Entry<Key,Value>> iterator()
ScannerBase
iterator in interface Iterable<Map.Entry<Key,Value>>iterator in interface ScannerBasepublic void removeScanIterator(String iteratorName)
ScannerBase
removeScanIterator in interface ScannerBaseiteratorName - nickname used for the iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||