Package org.apache.druid.data.input.impl
Class InlineInputSource
- java.lang.Object
-
- org.apache.druid.data.input.AbstractInputSource
-
- org.apache.druid.data.input.impl.InlineInputSource
-
- All Implemented Interfaces:
InputSource
public class InlineInputSource extends AbstractInputSource
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_KEY-
Fields inherited from interface org.apache.druid.data.input.InputSource
TYPE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description InlineInputSource(String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected InputSourceReaderformattableReader(InputRowSchema inputRowSchema, InputFormat inputFormat, File temporaryDirectory)StringgetData()Set<String>getTypes()The types of input sources uses.inthashCode()booleanisSplittable()Returns true if this inputSource can be processed in parallel using ParallelIndexSupervisorTask.booleanneedsFormat()Returns true if this inputSource supports differentInputFormats.StringtoString()-
Methods inherited from class org.apache.druid.data.input.AbstractInputSource
fixedFormatReader, reader
-
-
-
-
Field Detail
-
TYPE_KEY
public static final String TYPE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InlineInputSource
public InlineInputSource(String data)
-
-
Method Detail
-
getTypes
@Nonnull public Set<String> getTypes()
Description copied from interface:InputSourceThe types of input sources uses. A set is returned here, as some InputSource implementation allow for combining of multiple input sources.- Returns:
- The types of input sources uses
-
getData
public String getData()
-
isSplittable
public boolean isSplittable()
Description copied from interface:InputSourceReturns true if this inputSource can be processed in parallel using ParallelIndexSupervisorTask. It must be castable to SplittableInputSource and the various SplittableInputSource methods must work as documented.
-
needsFormat
public boolean needsFormat()
Description copied from interface:InputSourceReturns true if this inputSource supports differentInputFormats. Some inputSources such asLocalInputSourcecan store files of any format. These storage types require anInputFormatto be passed so thatInputSourceReadercan parse data properly. However, some storage types have a fixed format. For example, druid inputSource always reads segments. These inputSources should return false for this method.
-
formattableReader
protected InputSourceReader formattableReader(InputRowSchema inputRowSchema, InputFormat inputFormat, @Nullable File temporaryDirectory)
- Overrides:
formattableReaderin classAbstractInputSource
-
-