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() |
InputRow |
parse(ByteBuffer input) |
protected static InputRow |
parseGenericRecord(org.apache.avro.generic.GenericRecord record,
ParseSpec parseSpec,
List<String> dimensions,
boolean fromPigAvroStorage,
boolean binaryAsString) |
ByteBufferInputRowParser |
withParseSpec(ParseSpec parseSpec) |
public AvroStreamInputRowParser(ParseSpec parseSpec, AvroBytesDecoder avroBytesDecoder)
public InputRow parse(ByteBuffer input)
parse
in interface InputRowParser<ByteBuffer>
protected static InputRow parseGenericRecord(org.apache.avro.generic.GenericRecord record, ParseSpec parseSpec, List<String> dimensions, boolean fromPigAvroStorage, boolean binaryAsString)
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–2017. All rights reserved.