public class AvroHadoopInputRowParser extends Object implements InputRowParser<org.apache.avro.generic.GenericRecord>
Constructor and Description |
---|
AvroHadoopInputRowParser(ParseSpec parseSpec,
Boolean fromPigAvroStorage) |
Modifier and Type | Method and Description |
---|---|
ParseSpec |
getParseSpec() |
boolean |
isFromPigAvroStorage() |
List<InputRow> |
parseBatch(org.apache.avro.generic.GenericRecord record)
Parse an input into list of
InputRow . |
InputRowParser |
withParseSpec(ParseSpec parseSpec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
public List<InputRow> parseBatch(org.apache.avro.generic.GenericRecord record)
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<org.apache.avro.generic.GenericRecord>
public ParseSpec getParseSpec()
getParseSpec
in interface InputRowParser<org.apache.avro.generic.GenericRecord>
public boolean isFromPigAvroStorage()
public InputRowParser withParseSpec(ParseSpec parseSpec)
withParseSpec
in interface InputRowParser<org.apache.avro.generic.GenericRecord>
Copyright © 2011–2018. All rights reserved.