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