|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The data type to be extractedpublic interface Extractor<T>
An interface for extracting a specific data type from a text string that
is being processed by a Scanner
object.
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. |
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. |
Method Detail |
---|
T extract(String input)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |