Class FixedCountFirehoseFactory

  • All Implemented Interfaces:
    org.apache.druid.data.input.FirehoseFactory

    public class FixedCountFirehoseFactory
    extends Object
    implements org.apache.druid.data.input.FirehoseFactory
    Firehose to give out only first n events from the delegate firehose.
    • Constructor Detail

      • FixedCountFirehoseFactory

        public FixedCountFirehoseFactory​(org.apache.druid.data.input.FirehoseFactory delegate,
                                         int count)
    • Method Detail

      • getDelegate

        public org.apache.druid.data.input.FirehoseFactory getDelegate()
      • getCount

        public int getCount()
      • connect

        public org.apache.druid.data.input.Firehose connect​(org.apache.druid.data.input.impl.InputRowParser parser,
                                                            File temporaryDirectory)
                                                     throws IOException
        Specified by:
        connect in interface org.apache.druid.data.input.FirehoseFactory
        Throws:
        IOException