public class TransformingStringInputRowParser extends StringInputRowParser
Constructor and Description |
---|
TransformingStringInputRowParser(ParseSpec parseSpec,
String encoding,
TransformSpec transformSpec) |
Modifier and Type | Method and Description |
---|---|
TransformSpec |
getTransformSpec() |
InputRow |
parse(String input) |
List<InputRow> |
parseBatch(ByteBuffer input)
Parse an input into list of
InputRow . |
StringInputRowParser |
withParseSpec(ParseSpec parseSpec) |
getEncoding, getParseSpec, initializeParser, startFileFromBeginning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
public TransformingStringInputRowParser(ParseSpec parseSpec, String encoding, TransformSpec transformSpec)
public List<InputRow> parseBatch(ByteBuffer input)
InputRowParser
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.parseBatch
in interface InputRowParser<ByteBuffer>
parseBatch
in class StringInputRowParser
@Nullable public InputRow parse(@Nullable String input)
parse
in class StringInputRowParser
public StringInputRowParser withParseSpec(ParseSpec parseSpec)
withParseSpec
in interface ByteBufferInputRowParser
withParseSpec
in interface InputRowParser<ByteBuffer>
withParseSpec
in class StringInputRowParser
public TransformSpec getTransformSpec()
Copyright © 2011–2018. All rights reserved.