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