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
extract on 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
Extractor in case of an
error. |
PType<T> |
getPType(PTypeFamily ptf)
Returns the
PType associated with this data type for the
given PTypeFamily . |
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. |
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 © 2013 The Apache Software Foundation. All Rights Reserved.