Class ReadAllViaFileBasedSourceWithFilename<T>

All Implemented Interfaces:
Serializable, HasDisplayData

public class ReadAllViaFileBasedSourceWithFilename<T> extends ReadAllViaFileBasedSourceTransform<T,KV<String,T>>
Reads each file of the input PCollection and outputs each element as the value of a KV, where the key is the filename from which that value came.

Reads each FileIO.ReadableFile using given parameters for splitting files into offset ranges and for creating a FileBasedSource for a file. The input PCollection must not contain directories.

To obtain the collection of FileIO.ReadableFile from a filepattern, use FileIO.readMatches().

See Also: