Package org.apache.druid.data.input.impl
Class CsvInputFormat
- java.lang.Object
-
- org.apache.druid.data.input.impl.FlatTextInputFormat
-
- org.apache.druid.data.input.impl.CsvInputFormat
-
- All Implemented Interfaces:
InputFormat
public class CsvInputFormat extends FlatTextInputFormat
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_KEY-
Fields inherited from interface org.apache.druid.data.input.InputFormat
TYPE_PROPERTY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.opencsv.RFC4180ParsercreateOpenCsvParser()InputEntityReadercreateReader(InputRowSchema inputRowSchema, InputEntity source, File temporaryDirectory)StringgetDelimiter()booleanisSplittable()Trait to indicate that a file can be split into multipleInputSplits.StringtoString()-
Methods inherited from class org.apache.druid.data.input.impl.FlatTextInputFormat
createRowAdapter, equals, fieldsToString, getColumns, getListDelimiter, getSkipHeaderRows, getWeightedSize, hashCode, isFindColumnsFromHeader, useListBasedInputRows
-
-
-
-
Field Detail
-
TYPE_KEY
public static final String TYPE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDelimiter
public String getDelimiter()
- Overrides:
getDelimiterin classFlatTextInputFormat
-
isSplittable
public boolean isSplittable()
Description copied from interface:InputFormatTrait to indicate that a file can be split into multipleInputSplits.This method is not being used anywhere for now, but should be considered in
SplittableInputSource.createSplits(org.apache.druid.data.input.InputFormat, org.apache.druid.data.input.SplitHintSpec)in the future.
-
createReader
public InputEntityReader createReader(InputRowSchema inputRowSchema, InputEntity source, File temporaryDirectory)
-
createOpenCsvParser
public static com.opencsv.RFC4180Parser createOpenCsvParser()
-
-