public abstract class AbstractCompositeExtractor<T> extends Object implements Extractor<T>
Extractor instances that delegates the parsing of fields to other
 Extractor instances, primarily used for constructing composite records that implement
 the Tuple interface.| Constructor and Description | 
|---|
| AbstractCompositeExtractor(TokenizerFactory scannerFactory,
                          List<Extractor<?>> extractors) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | errorOnLastRecord()Returns true if the last call to  extracton 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  Extractorinstance
 encountered while parsing input data. | 
| void | initialize()Perform any initialization required by this  Extractorduring the
 start of a map or reduce task. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultValue, getPTypepublic AbstractCompositeExtractor(TokenizerFactory scannerFactory, List<Extractor<?>> extractors)
public T extract(String input)
Extractorpublic void initialize()
ExtractorExtractor during the
 start of a map or reduce task.initialize in interface Extractor<T>public boolean errorOnLastRecord()
Extractorextract on this instance
 threw an exception that was handled.errorOnLastRecord in interface Extractor<T>public ExtractorStats getStats()
ExtractorExtractor instance
 encountered while parsing input data.Copyright © 2017 The Apache Software Foundation. All rights reserved.