Package org.apache.druid.metadata.input
Class SqlInputSource
java.lang.Object
org.apache.druid.data.input.AbstractInputSource
org.apache.druid.metadata.input.SqlInputSource
- All Implemented Interfaces:
SplittableInputSource<String>,InputSource
-
Field Summary
Fields inherited from interface org.apache.druid.data.input.InputSource
TYPE_PROPERTYFields inherited from interface org.apache.druid.data.input.impl.SplittableInputSource
DEFAULT_SPLIT_HINT_SPEC -
Constructor Summary
ConstructorsConstructorDescriptionSqlInputSource(List<String> sqls, boolean foldCase, SQLInputSourceDatabaseConnector sqlInputSourceDatabaseConnector, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptioncreateSplits(InputFormat inputFormat, SplitHintSpec splitHintSpec) booleanintestimateNumSplits(InputFormat inputFormat, SplitHintSpec splitHintSpec) protected InputSourceReaderfixedFormatReader(InputRowSchema inputRowSchema, File temporaryDirectory) getSqls()getTypes()inthashCode()booleanbooleanwithSplit(InputSplit<String> split) Methods inherited from class org.apache.druid.data.input.AbstractInputSource
formattableReader, readerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.data.input.InputSource
readerMethods inherited from interface org.apache.druid.data.input.impl.SplittableInputSource
getSplitHintSpecOrDefault, isSplittable
-
Constructor Details
-
SqlInputSource
public SqlInputSource(List<String> sqls, boolean foldCase, SQLInputSourceDatabaseConnector sqlInputSourceDatabaseConnector, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getTypes
- Specified by:
getTypesin interfaceInputSource
-
getSqls
-
isFoldCase
public boolean isFoldCase() -
getSQLInputSourceDatabaseConnector
-
createSplits
public Stream<InputSplit<String>> createSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec) - Specified by:
createSplitsin interfaceSplittableInputSource<String>
-
estimateNumSplits
- Specified by:
estimateNumSplitsin interfaceSplittableInputSource<String>
-
withSplit
- Specified by:
withSplitin interfaceSplittableInputSource<String>
-
fixedFormatReader
protected InputSourceReader fixedFormatReader(InputRowSchema inputRowSchema, @Nullable File temporaryDirectory) - Overrides:
fixedFormatReaderin classAbstractInputSource
-
needsFormat
public boolean needsFormat()- Specified by:
needsFormatin interfaceInputSource
-
equals
-
hashCode
public int hashCode()
-