Package org.apache.druid.data.input
Interface FirehoseFactory<T extends InputRowParser>
-
@Deprecated public interface FirehoseFactory<T extends InputRowParser>
Deprecated.FirehoseFactory creates aFirehose
which is an interface holding onto the stream of incoming data. It currently provides two methods for creating aFirehose
and their default implementations call each other for the backward compatibility. Implementations of this interface must implement one of these methods. This class is deprecated in favor ofInputSource
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default Firehose
connect(T parser)
Deprecated.default Firehose
connect(T parser, File temporaryDirectory)
Deprecated.Initialization method that connects up the fire hose.default boolean
isSplittable()
Deprecated.
-
-
-
Method Detail
-
connect
@Deprecated default Firehose connect(T parser) throws IOException, ParseException
Deprecated.Initialization method that connects up the fire hose. If this method returns successfully it should be safe to call hasMore() on the returned Firehose (which might subsequently block). If this method returns null, then any attempt to call hasMore(), nextRow() and close() on the return value will throw a surprising NPE. Throwing IOException on connection failure or runtime exception on invalid configuration is preferred over returning null.- Parameters:
parser
- an input row parser- Throws:
IOException
ParseException
-
connect
default Firehose connect(T parser, @Nullable File temporaryDirectory) throws IOException, ParseException
Deprecated.Initialization method that connects up the fire hose. If this method returns successfully it should be safe to call hasMore() on the returned Firehose (which might subsequently block). If this method returns null, then any attempt to call hasMore(), nextRow() and close() on the return value will throw a surprising NPE. Throwing IOException on connection failure or runtime exception on invalid configuration is preferred over returning null.- Parameters:
parser
- an input row parsertemporaryDirectory
- a directory where temporary files are stored- Throws:
IOException
ParseException
-
isSplittable
default boolean isSplittable()
Deprecated.
-
-