|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.contrib.text.AbstractCompositeExtractor<T>
public abstract class AbstractCompositeExtractor<T>
Base class for Extractor
instances that delegates the parsing of fields to other
Extractor
instances, primarily used for constructing composite records that implement
the Tuple
interface.
Constructor Summary | |
---|---|
AbstractCompositeExtractor(TokenizerFactory scannerFactory,
List<Extractor<?>> extractors)
|
Method Summary | |
---|---|
boolean |
errorOnLastRecord()
Returns true if the last call to extract on this instance
threw an exception that was handled. |
T |
extract(String input)
Extract a value with the type of this instance. |
ExtractorStats |
getStats()
Return statistics about how many errors this Extractor instance
encountered while parsing input data. |
void |
initialize()
Perform any initialization required by this Extractor during the
start of a map or reduce task. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.crunch.contrib.text.Extractor |
---|
getDefaultValue, getPType |
Constructor Detail |
---|
public AbstractCompositeExtractor(TokenizerFactory scannerFactory, List<Extractor<?>> extractors)
Method Detail |
---|
public T extract(String input)
Extractor
extract
in interface Extractor<T>
public void initialize()
Extractor
Extractor
during the
start of a map or reduce task.
initialize
in interface Extractor<T>
public boolean errorOnLastRecord()
Extractor
extract
on this instance
threw an exception that was handled.
errorOnLastRecord
in interface Extractor<T>
public ExtractorStats getStats()
Extractor
Extractor
instance
encountered while parsing input data.
getStats
in interface Extractor<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |