Package org.apache.druid.data.input.impl
Class DelimitedInputFormat
java.lang.Object
org.apache.druid.data.input.impl.FlatTextInputFormat
org.apache.druid.data.input.impl.DelimitedInputFormat
- All Implemented Interfaces:
InputFormat
InputFormat for customized Delimiter Separate Value format of input data (default is TSV).
-
Field Summary
FieldsFields inherited from interface org.apache.druid.data.input.InputFormat
TYPE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReader(InputRowSchema inputRowSchema, InputEntity source, File temporaryDirectory) booleanTrait to indicate that a file can be split into multipleInputSplits.splitToList(com.google.common.base.Splitter splitter, String input) Copied from Guava'sSplitter.splitToList(CharSequence).toString()Methods inherited from class org.apache.druid.data.input.impl.FlatTextInputFormat
createRowAdapter, equals, fieldsToString, getColumns, getDelimiter, getListDelimiter, getSkipHeaderRows, getWeightedSize, hashCode, isFindColumnsFromHeader, shouldTryParseNumbers, useListBasedInputRows
-
Field Details
-
TYPE_KEY
- See Also:
-
-
Constructor Details
-
DelimitedInputFormat
-
-
Method Details
-
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) -
splitToList
Copied from Guava'sSplitter.splitToList(CharSequence). This is to avoid the error of the missing method signature when using an old Guava library. For example, it may happen when running Druid Hadoop indexing jobs, since we may inherit the version provided by the Hadoop cluster. See https://github.com/apache/druid/issues/6801. -
toString
-