public interface InputRowParser<T>
Modifier and Type | Method and Description |
---|---|
ParseSpec |
getParseSpec() |
default InputRow |
parse(T input)
Deprecated.
|
default List<InputRow> |
parseBatch(T input)
Parse an input into list of
InputRow . |
InputRowParser |
withParseSpec(ParseSpec parseSpec) |
@NotNull default List<InputRow> parseBatch(T input)
InputRow
. 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.@Deprecated @Nullable default InputRow parse(T input)
InputRow
. Return null if this input should be thrown away, or throws
ParseException
if the input is unparseable.ParseSpec getParseSpec()
InputRowParser withParseSpec(ParseSpec parseSpec)
Copyright © 2011–2018. All rights reserved.