|
||||||||||
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 ScannerBase
public void addScanIterator(IteratorSetting cfg)
ScannerBase
addScanIterator
in interface ScannerBase
cfg
- 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 ScannerBase
iteratorName
- the name of the iterator to changekey
- the name of the optionvalue
- the new value for the named optionpublic void setupRegex(String iteratorName, int iteratorPriority) throws IOException
ScannerBase
setupRegex
in interface ScannerBase
iteratorName
- 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 ScannerBase
regex
- java regular expression to matchpublic void setColumnFamilyRegex(String regex)
ScannerBase
setColumnFamilyRegex
in interface ScannerBase
regex
- java regular expression to matchpublic void setColumnQualifierRegex(String regex)
ScannerBase
setColumnQualifierRegex
in interface ScannerBase
regex
- java regular expression to matchpublic void setValueRegex(String regex)
ScannerBase
setValueRegex
in interface ScannerBase
regex
- java regular expression to matchpublic void fetchColumnFamily(org.apache.hadoop.io.Text col)
ScannerBase
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 clearColumns()
ScannerBase
clearColumns
in interface ScannerBase
public void clearScanIterators()
ScannerBase
clearScanIterators
in interface ScannerBase
public void setTimeOut(int timeOut)
Scanner
setTimeOut
in interface Scanner
timeOut
- in secondspublic int getTimeOut()
Scanner
getTimeOut
in interface Scanner
public void setRange(Range range)
Scanner
setRange
in interface Scanner
range
- key range to begin and end scanpublic Range getRange()
Scanner
getRange
in interface Scanner
public void setBatchSize(int size)
Scanner
setBatchSize
in interface Scanner
size
- the number of Key/Value pairs to fetch per call to Accumulopublic int getBatchSize()
Scanner
getBatchSize
in interface Scanner
public void enableIsolation()
Scanner
enableIsolation
in interface Scanner
public void disableIsolation()
Scanner
disableIsolation
in interface Scanner
public Iterator<Map.Entry<Key,Value>> iterator()
ScannerBase
iterator
in interface Iterable<Map.Entry<Key,Value>>
iterator
in interface ScannerBase
public void removeScanIterator(String iteratorName)
ScannerBase
removeScanIterator
in interface ScannerBase
iteratorName
- nickname used for the iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |