Interface FirehoseFactory<T extends InputRowParser>


  • @Deprecated
    public interface FirehoseFactory<T extends InputRowParser>
    Deprecated.
    FirehoseFactory creates a Firehose which is an interface holding onto the stream of incoming data. It currently provides two methods for creating a Firehose 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 of InputSource
    • 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 parser
        temporaryDirectory - a directory where temporary files are stored
        Throws:
        IOException
        ParseException
      • isSplittable

        default boolean isSplittable()
        Deprecated.