Class TransformingInputRowParser<T>
- java.lang.Object
-
- org.apache.druid.segment.transform.TransformingInputRowParser<T>
-
- All Implemented Interfaces:
InputRowParser<T>
public class TransformingInputRowParser<T> extends Object implements InputRowParser<T>
-
-
Constructor Summary
Constructors Constructor Description TransformingInputRowParser(InputRowParser<T> parser, TransformSpec transformSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseSpecgetParseSpec()List<InputRow>parseBatch(T row)Parse an input into list ofInputRow.InputRowParser<T>withParseSpec(ParseSpec parseSpec)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.data.input.impl.InputRowParser
parse
-
-
-
-
Constructor Detail
-
TransformingInputRowParser
public TransformingInputRowParser(InputRowParser<T> parser, TransformSpec transformSpec)
-
-
Method Detail
-
parseBatch
public List<InputRow> parseBatch(T row)
Description copied from interface:InputRowParserParse an input into list ofInputRow. List can contains null for rows that should be thrown away, or throwsParseExceptionif the input is unparseable. This method should never return null otherwise lots of things will break.- Specified by:
parseBatchin interfaceInputRowParser<T>
-
getParseSpec
public ParseSpec getParseSpec()
- Specified by:
getParseSpecin interfaceInputRowParser<T>
-
withParseSpec
public InputRowParser<T> withParseSpec(ParseSpec parseSpec)
- Specified by:
withParseSpecin interfaceInputRowParser<T>
-
-