public abstract static class AvroIO.ParseFiles<T>
extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.io.FileIO.ReadableFile>,org.apache.beam.sdk.values.PCollection<T>>
AvroIO.parseFilesGenericRecords(org.apache.beam.sdk.transforms.SerializableFunction<org.apache.avro.generic.GenericRecord, T>).| Constructor and Description |
|---|
ParseFiles() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<T> |
expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.io.FileIO.ReadableFile> input) |
void |
populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder) |
AvroIO.ParseFiles<T> |
withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Specifies the coder for the result of the
parseFn. |
AvroIO.ParseFiles<T> |
withDesiredBundleSizeBytes(long desiredBundleSizeBytes)
Set a value for the bundle size for parallel reads.
|
AvroIO.ParseFiles<T> |
withFileExceptionHandler(org.apache.beam.sdk.io.ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler)
Specifies if exceptions should be logged only for streaming pipelines.
|
AvroIO.ParseFiles<T> |
withUsesReshuffle(boolean usesReshuffle)
Specifies if a Reshuffle should run before file reads occur.
|
public AvroIO.ParseFiles<T> withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
parseFn.public AvroIO.ParseFiles<T> withUsesReshuffle(boolean usesReshuffle)
public AvroIO.ParseFiles<T> withFileExceptionHandler(org.apache.beam.sdk.io.ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler)
public AvroIO.ParseFiles<T> withDesiredBundleSizeBytes(long desiredBundleSizeBytes)
public org.apache.beam.sdk.values.PCollection<T> expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.io.FileIO.ReadableFile> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.io.FileIO.ReadableFile>,org.apache.beam.sdk.values.PCollection<T>>public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
populateDisplayData in interface org.apache.beam.sdk.transforms.display.HasDisplayDatapopulateDisplayData in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.io.FileIO.ReadableFile>,org.apache.beam.sdk.values.PCollection<T>>