public class TransformingInputRowParser<T> extends Object implements InputRowParser<T>
| Constructor and Description |
|---|
TransformingInputRowParser(InputRowParser<T> parser,
TransformSpec transformSpec) |
| Modifier and Type | Method and Description |
|---|---|
ParseSpec |
getParseSpec() |
List<InputRow> |
parseBatch(T row)
Parse an input into list of
InputRow. |
InputRowParser<T> |
withParseSpec(ParseSpec parseSpec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparsepublic TransformingInputRowParser(InputRowParser<T> parser, TransformSpec transformSpec)
public List<InputRow> parseBatch(T row)
InputRowParserInputRow. List can contains null for rows that should be thrown away,
or throws ParseException if the input is unparseable. This method should never return null otherwise
lots of things will break.parseBatch in interface InputRowParser<T>public ParseSpec getParseSpec()
getParseSpec in interface InputRowParser<T>public InputRowParser<T> withParseSpec(ParseSpec parseSpec)
withParseSpec in interface InputRowParser<T>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.