Class SqlInputSource

  • All Implemented Interfaces:
    org.apache.druid.data.input.impl.SplittableInputSource<String>, org.apache.druid.data.input.InputSource

    public class SqlInputSource
    extends org.apache.druid.data.input.AbstractInputSource
    implements org.apache.druid.data.input.impl.SplittableInputSource<String>
    • Constructor Detail

      • SqlInputSource

        public SqlInputSource​(List<String> sqls,
                              boolean foldCase,
                              SQLFirehoseDatabaseConnector sqlFirehoseDatabaseConnector,
                              com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • getTypes

        @Nonnull
        public Set<String> getTypes()
        Specified by:
        getTypes in interface org.apache.druid.data.input.InputSource
      • isFoldCase

        public boolean isFoldCase()
      • createSplits

        public Stream<org.apache.druid.data.input.InputSplit<String>> createSplits​(org.apache.druid.data.input.InputFormat inputFormat,
                                                                                   @Nullable
                                                                                   org.apache.druid.data.input.SplitHintSpec splitHintSpec)
        Specified by:
        createSplits in interface org.apache.druid.data.input.impl.SplittableInputSource<String>
      • estimateNumSplits

        public int estimateNumSplits​(org.apache.druid.data.input.InputFormat inputFormat,
                                     @Nullable
                                     org.apache.druid.data.input.SplitHintSpec splitHintSpec)
        Specified by:
        estimateNumSplits in interface org.apache.druid.data.input.impl.SplittableInputSource<String>
      • withSplit

        public org.apache.druid.data.input.impl.SplittableInputSource<String> withSplit​(org.apache.druid.data.input.InputSplit<String> split)
        Specified by:
        withSplit in interface org.apache.druid.data.input.impl.SplittableInputSource<String>
      • fixedFormatReader

        protected org.apache.druid.data.input.InputSourceReader fixedFormatReader​(org.apache.druid.data.input.InputRowSchema inputRowSchema,
                                                                                  @Nullable
                                                                                  File temporaryDirectory)
        Overrides:
        fixedFormatReader in class org.apache.druid.data.input.AbstractInputSource
      • needsFormat

        public boolean needsFormat()
        Specified by:
        needsFormat in interface org.apache.druid.data.input.InputSource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object