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