T - The data type to be extractedpublic interface Extractor<T> extends Serializable
Scanner object.| 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. | 
| T | getDefaultValue()Returns the default value for this  Extractorin case of an
 error. | 
| PType<T> | getPType(PTypeFamily ptf)Returns the  PTypeassociated with this data type for the
 givenPTypeFamily. | 
| 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. | 
PType<T> getPType(PTypeFamily ptf)
PType associated with this data type for the
 given PTypeFamily.T getDefaultValue()
Extractor in case of an
 error.void initialize()
Extractor during the
 start of a map or reduce task.boolean errorOnLastRecord()
extract on this instance
 threw an exception that was handled.ExtractorStats getStats()
Extractor instance
 encountered while parsing input data.Copyright © 2017 The Apache Software Foundation. All rights reserved.