Class GSTxtFileReaderPipe
- java.lang.Object
-
- org.pipecraft.pipes.sync.source.InputStreamPipe<String>
-
- org.pipecraft.pipes.sync.source.StorageTxtFileReaderPipe
-
- org.pipecraft.pipes.source.google_cs.GSTxtFileReaderPipe
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.pipecraft.pipes.BasePipe,org.pipecraft.pipes.sync.Pipe<String>
public class GSTxtFileReaderPipe extends org.pipecraft.pipes.sync.source.StorageTxtFileReaderPipeA source pipe providing the lines of a text file in someStorage, in a streaming manner. Supports decompression. Note that for larger filesGSTxtFileFetcherReaderPipemay be much faster.- Author:
- Eyal Schneider
-
-
Constructor Summary
Constructors Constructor Description GSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path)Constructor Uses the default read chunk size and default read options, and assumes UTF8GSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path, Charset charset)Constructor Uses the default read chunk size and default read optionsGSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path, Charset charset, int chunkSize, org.pipecraft.infra.io.FileReadOptions options)ConstructorGSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path, org.pipecraft.infra.io.FileReadOptions options)Constructor Uses the default read chunk size and assumes UTF8
-
-
-
Constructor Detail
-
GSTxtFileReaderPipe
public GSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path, Charset charset, int chunkSize, org.pipecraft.infra.io.FileReadOptions options)
Constructor- Parameters:
gs- The storage connectorbucket- The bucket to read the file frompath- The full path of the text file inside the bucketcharset- The charset usedchunkSize- The size (in bytes) of each chunk read from storage at once, or 0 for using the default one.options- The file read options
-
GSTxtFileReaderPipe
public GSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path, Charset charset)
Constructor Uses the default read chunk size and default read options- Parameters:
gs- The storage connectorbucket- The bucket to read the file frompath- The full path of the text file inside the bucketcharset- The charset used
-
GSTxtFileReaderPipe
public GSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path, org.pipecraft.infra.io.FileReadOptions options)
Constructor Uses the default read chunk size and assumes UTF8- Parameters:
gs- The storage connectorbucket- The bucket to read the file frompath- The full path of the text file inside the bucket. The file is assumed to be UTF8.options- The file read options
-
GSTxtFileReaderPipe
public GSTxtFileReaderPipe(GoogleStorage gs, String bucket, String path)
Constructor Uses the default read chunk size and default read options, and assumes UTF8- Parameters:
gs- The storage connectorbucket- The bucket to read the file frompath- The full path of the text file inside the bucket. The file is assumed to be UTF8.
-
-