|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScannerBase
This class host methods that are shared between all different types of scanners.
Method Summary | |
---|---|
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 |
fetchColumn(org.apache.hadoop.io.Text colFam,
org.apache.hadoop.io.Text colQual)
Limits the scan to only this column, identified by family and qualifier. |
void |
fetchColumnFamily(org.apache.hadoop.io.Text col)
|
void |
setColumnFamilyRegex(java.lang.String regex)
Set a column family regular expression that filters non matching entries server side. |
void |
setColumnQualifierRegex(java.lang.String regex)
Set a column qualifier regular expression that filters non matching entries server side. |
void |
setRowRegex(java.lang.String regex)
Set a row regular expression that filters non matching entries server side. |
void |
setScanIteratorOption(java.lang.String iteratorName,
java.lang.String key,
java.lang.String value)
Sets options for server side scan iterators. |
void |
setScanIterators(int priority,
java.lang.String iteratorClass,
java.lang.String iteratorName)
Sets server side scan iterators. |
void |
setupRegex(java.lang.String iteratorName,
int iteratorPriority)
Call this method to initialize regular expressions on a scanner. |
void |
setValueRegex(java.lang.String regex)
Set a value regular expression that filters non matching entries server side. |
Method Detail |
---|
void setScanIterators(int priority, java.lang.String iteratorClass, java.lang.String iteratorName) throws java.io.IOException
priority
- determines the order in which iterators are applied (system iterators are always applied first, then per-table and scan-time, lowest first)iteratorClass
- the fully qualified class name of the iterator to be applied at scan timeiteratorName
- a nickname for the iterator
java.io.IOException
- if an exception occurs reading from the iterator stackvoid setScanIteratorOption(java.lang.String iteratorName, java.lang.String key, java.lang.String value)
iteratorName
- a nickname for the iteratorkey
- option name (depends on specific iterator)value
- option value (depends on specific iterator)void setupRegex(java.lang.String iteratorName, int iteratorPriority) throws java.io.IOException
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)
java.io.IOException
- if an exception occurs reading from the iterator stackvoid setRowRegex(java.lang.String regex)
regex
- java regular expression to matchvoid setColumnFamilyRegex(java.lang.String regex)
regex
- java regular expression to matchvoid setColumnQualifierRegex(java.lang.String regex)
regex
- java regular expression to matchvoid setValueRegex(java.lang.String regex)
regex
- java regular expression to matchvoid fetchColumnFamily(org.apache.hadoop.io.Text col)
col
- limit the scan to only this column family (multiple calls appends to the list of column families to limit)void fetchColumn(org.apache.hadoop.io.Text colFam, org.apache.hadoop.io.Text colQual)
colFam
- the column family of the column to be fetchedcolQual
- the column qualifier of the column to be fetchedvoid clearColumns()
void clearScanIterators()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |