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 String
TYPE_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 boolean
equals(Object o)
protected InputSourceReader
formattableReader(InputRowSchema inputRowSchema, InputFormat inputFormat, File temporaryDirectory)
String
getData()
Set<String>
getTypes()
The types of input sources uses.int
hashCode()
boolean
isSplittable()
Returns true if this inputSource can be processed in parallel using ParallelIndexSupervisorTask.boolean
needsFormat()
Returns true if this inputSource supports differentInputFormat
s.String
toString()
-
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:InputSource
The 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:InputSource
Returns 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:InputSource
Returns true if this inputSource supports differentInputFormat
s. Some inputSources such asLocalInputSource
can store files of any format. These storage types require anInputFormat
to be passed so thatInputSourceReader
can 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:
formattableReader
in classAbstractInputSource
-
-