public abstract static class ReadAllViaFileBasedSourceTransform.AbstractReadFileRangesFn<InT,T> extends DoFn<KV<FileIO.ReadableFile,OffsetRange>,T>
DoFn.AlwaysFetched, DoFn.BoundedPerElement, DoFn.BundleFinalizer, DoFn.Element, DoFn.FieldAccess, DoFn.FinishBundle, DoFn.FinishBundleContext, DoFn.GetInitialRestriction, DoFn.GetInitialWatermarkEstimatorState, DoFn.GetRestrictionCoder, DoFn.GetSize, DoFn.GetWatermarkEstimatorStateCoder, DoFn.Key, DoFn.MultiOutputReceiver, DoFn.NewTracker, DoFn.NewWatermarkEstimator, DoFn.OnTimer, DoFn.OnTimerContext, DoFn.OnTimerFamily, DoFn.OnWindowExpiration, DoFn.OnWindowExpirationContext, DoFn.OutputReceiver<T>, DoFn.ProcessContext, DoFn.ProcessContinuation, DoFn.ProcessElement, DoFn.RequiresStableInput, DoFn.RequiresTimeSortedInput, DoFn.Restriction, DoFn.Setup, DoFn.SideInput, DoFn.SplitRestriction, DoFn.StartBundle, DoFn.StartBundleContext, DoFn.StateId, DoFn.Teardown, DoFn.TimerFamily, DoFn.TimerId, DoFn.Timestamp, DoFn.TruncateRestriction, DoFn.UnboundedPerElement, DoFn.WatermarkEstimatorState, DoFn.WindowedContext
Constructor and Description |
---|
AbstractReadFileRangesFn(SerializableFunction<java.lang.String,? extends FileBasedSource<InT>> createSource,
ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
makeOutput(FileIO.ReadableFile file,
OffsetRange range,
FileBasedSource<InT> fileBasedSource,
BoundedSource.BoundedReader<InT> reader) |
void |
process(DoFn.ProcessContext c) |
getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData, prepareForProcessing
public AbstractReadFileRangesFn(SerializableFunction<java.lang.String,? extends FileBasedSource<InT>> createSource, ReadAllViaFileBasedSource.ReadFileRangesFnExceptionHandler exceptionHandler)
protected abstract T makeOutput(FileIO.ReadableFile file, OffsetRange range, FileBasedSource<InT> fileBasedSource, BoundedSource.BoundedReader<InT> reader)
@DoFn.ProcessElement public void process(DoFn.ProcessContext c) throws java.io.IOException
java.io.IOException