Class FixedCountFirehoseFactory
- java.lang.Object
-
- org.apache.druid.segment.realtime.firehose.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 Summary
Constructors Constructor Description FixedCountFirehoseFactory(org.apache.druid.data.input.FirehoseFactory delegate, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.druid.data.input.Firehoseconnect(org.apache.druid.data.input.impl.InputRowParser parser, File temporaryDirectory)intgetCount()org.apache.druid.data.input.FirehoseFactorygetDelegate()
-
-
-
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:
connectin interfaceorg.apache.druid.data.input.FirehoseFactory- Throws:
IOException
-
-