public class ReadAllViaFileBasedSource<T> extends ReadAllViaFileBasedSourceTransform<T,T>
PCollection
of 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()
.
Modifier and Type | Class and Description |
---|---|
static class |
ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler
A class to handle errors which occur during file reads.
|
ReadAllViaFileBasedSourceTransform.AbstractReadFileRangesFn<InT,T>, ReadAllViaFileBasedSourceTransform.SplitIntoRangesFn
coder, createSource, DEFAULT_USES_RESHUFFLE, desiredBundleSizeBytes, exceptionHandler, usesReshuffle
name, resourceHints
Constructor and Description |
---|
ReadAllViaFileBasedSource(long desiredBundleSizeBytes,
SerializableFunction<java.lang.String,? extends FileBasedSource<T>> createSource,
Coder<T> coder) |
ReadAllViaFileBasedSource(long desiredBundleSizeBytes,
SerializableFunction<java.lang.String,? extends FileBasedSource<T>> createSource,
Coder<T> coder,
boolean usesReshuffle,
ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler) |
Modifier and Type | Method and Description |
---|---|
protected DoFn<KV<FileIO.ReadableFile,OffsetRange>,T> |
readRangesFn() |
expand
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
public ReadAllViaFileBasedSource(long desiredBundleSizeBytes, SerializableFunction<java.lang.String,? extends FileBasedSource<T>> createSource, Coder<T> coder)
public ReadAllViaFileBasedSource(long desiredBundleSizeBytes, SerializableFunction<java.lang.String,? extends FileBasedSource<T>> createSource, Coder<T> coder, boolean usesReshuffle, ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler)
protected DoFn<KV<FileIO.ReadableFile,OffsetRange>,T> readRangesFn()
readRangesFn
in class ReadAllViaFileBasedSourceTransform<T,T>