public class ThriftInputRowParser extends Object implements InputRowParser<Object>
Constructor and Description |
---|
ThriftInputRowParser(ParseSpec parseSpec,
String jarPath,
String thriftClassName) |
Modifier and Type | Method and Description |
---|---|
ParseSpec |
getParseSpec() |
Class<org.apache.thrift.TBase> |
getThriftClass() |
List<InputRow> |
parseBatch(Object input)
Parse an input into list of
InputRow . |
InputRowParser |
withParseSpec(ParseSpec parseSpec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
public Class<org.apache.thrift.TBase> getThriftClass() throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException
public List<InputRow> parseBatch(Object 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<Object>
public ParseSpec getParseSpec()
getParseSpec
in interface InputRowParser<Object>
public InputRowParser withParseSpec(ParseSpec parseSpec)
withParseSpec
in interface InputRowParser<Object>
Copyright © 2011–2018. All rights reserved.