Package org.apache.druid.data.input.impl
Class StringInputRowParser
- java.lang.Object
-
- org.apache.druid.data.input.impl.StringInputRowParser
-
- All Implemented Interfaces:
ByteBufferInputRowParser,InputRowParser<ByteBuffer>
- Direct Known Subclasses:
TransformingStringInputRowParser
public class StringInputRowParser extends Object implements ByteBufferInputRowParser
-
-
Constructor Summary
Constructors Constructor Description StringInputRowParser(ParseSpec parseSpec)Deprecated.StringInputRowParser(ParseSpec parseSpec, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>buildStringKeyMap(ByteBuffer input)StringgetEncoding()ParseSpecgetParseSpec()voidinitializeParser()InputRowparse(String input)List<InputRow>parseBatch(ByteBuffer input)Parse an input into list ofInputRow.Map<String,Object>parseString(String inputString)voidstartFileFromBeginning()StringInputRowParserwithParseSpec(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
-
StringInputRowParser
@Deprecated public StringInputRowParser(ParseSpec parseSpec)
Deprecated.
-
-
Method Detail
-
parseBatch
public List<InputRow> parseBatch(ByteBuffer input)
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<ByteBuffer>
-
getParseSpec
public ParseSpec getParseSpec()
- Specified by:
getParseSpecin interfaceInputRowParser<ByteBuffer>
-
getEncoding
public String getEncoding()
-
withParseSpec
public StringInputRowParser withParseSpec(ParseSpec parseSpec)
- Specified by:
withParseSpecin interfaceByteBufferInputRowParser- Specified by:
withParseSpecin interfaceInputRowParser<ByteBuffer>
-
buildStringKeyMap
public Map<String,Object> buildStringKeyMap(ByteBuffer input)
-
initializeParser
public void initializeParser()
-
startFileFromBeginning
public void startFileFromBeginning()
-
-