Package org.apache.beam.sdk.io
Class ReadAllViaFileBasedSourceTransform<InT,T>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<FileIO.ReadableFile>,PCollection<T>>
org.apache.beam.sdk.io.ReadAllViaFileBasedSourceTransform<InT,T>
- All Implemented Interfaces:
Serializable,HasDisplayData
- Direct Known Subclasses:
ReadAllViaFileBasedSource,ReadAllViaFileBasedSourceWithFilename
public abstract class ReadAllViaFileBasedSourceTransform<InT,T>
extends PTransform<PCollection<FileIO.ReadableFile>,PCollection<T>>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SerializableFunction<String, ? extends FileBasedSource<InT>> static final booleanprotected final longprotected final ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandlerprotected final booleanFields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Constructor Summary
ConstructorsConstructorDescriptionReadAllViaFileBasedSourceTransform(long desiredBundleSizeBytes, SerializableFunction<String, ? extends FileBasedSource<InT>> createSource, Coder<T> coder) ReadAllViaFileBasedSourceTransform(long desiredBundleSizeBytes, SerializableFunction<String, ? extends FileBasedSource<InT>> createSource, Coder<T> coder, boolean usesReshuffle, ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionexpand(PCollection<FileIO.ReadableFile> input) Override this method to specify how thisPTransformshould be expanded on the givenInputT.protected abstract DoFn<KV<FileIO.ReadableFile, OffsetRange>, T> Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Field Details
-
DEFAULT_USES_RESHUFFLE
public static final boolean DEFAULT_USES_RESHUFFLE- See Also:
-
desiredBundleSizeBytes
protected final long desiredBundleSizeBytes -
createSource
-
coder
-
exceptionHandler
-
usesReshuffle
protected final boolean usesReshuffle
-
-
Constructor Details
-
ReadAllViaFileBasedSourceTransform
public ReadAllViaFileBasedSourceTransform(long desiredBundleSizeBytes, SerializableFunction<String, ? extends FileBasedSource<InT>> createSource, Coder<T> coder) -
ReadAllViaFileBasedSourceTransform
public ReadAllViaFileBasedSourceTransform(long desiredBundleSizeBytes, SerializableFunction<String, ? extends FileBasedSource<InT>> createSource, Coder<T> coder, boolean usesReshuffle, ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler)
-
-
Method Details
-
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expandin classPTransform<PCollection<FileIO.ReadableFile>,PCollection<T>>
-
readRangesFn
-