Package org.pipecraft.pipes.async.source
Class AsyncMultiFileReaderPipe<T>
- java.lang.Object
-
- org.pipecraft.pipes.async.AsyncPipe<T>
-
- org.pipecraft.pipes.async.inter.AsyncCompoundPipe<T>
-
- org.pipecraft.pipes.async.source.AsyncMultiFileReaderPipe<T>
-
- Type Parameters:
T- The output item data type
- All Implemented Interfaces:
Closeable,AutoCloseable,BasePipe
public class AsyncMultiFileReaderPipe<T> extends AsyncCompoundPipe<T>
An async source pipe reading multiple local binary files. Supports file filtering and automatic sharding of the data. This pipe is the async version ofMultiFileReaderPipe.- Author:
- Eyal Schneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pipecraft.pipes.async.AsyncPipe
AsyncPipe.Status
-
-
Constructor Summary
Constructors Constructor Description AsyncMultiFileReaderPipe(LocalMultiFileReaderConfig<T> config)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AsyncPipe<T>createPipeline()-
Methods inherited from class org.pipecraft.pipes.async.inter.AsyncCompoundPipe
close, getProgress, start
-
Methods inherited from class org.pipecraft.pipes.async.AsyncPipe
getStatus, notifyDone, notifyError, notifyNext, setListener
-
-
-
-
Constructor Detail
-
AsyncMultiFileReaderPipe
public AsyncMultiFileReaderPipe(LocalMultiFileReaderConfig<T> config)
Constructor- Parameters:
config- The multi reader config
-
-
Method Detail
-
createPipeline
protected AsyncPipe<T> createPipeline() throws IOException
- Specified by:
createPipelinein classAsyncCompoundPipe<T>- Returns:
- A new pipeline to represent the logic of this pipe
- Throws:
IOException- In case of IO error while building the internal pipeline
-
-