Package cz.o2.proxima.beam.direct.io
Class DirectBatchSource
- java.lang.Object
-
- org.apache.beam.sdk.io.Source<T>
-
- org.apache.beam.sdk.io.BoundedSource<StreamElement>
-
- cz.o2.proxima.beam.direct.io.AbstractDirectBoundedSource
-
- cz.o2.proxima.beam.direct.io.DirectBatchSource
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
public class DirectBatchSource extends AbstractDirectBoundedSource
AnBoundedSourcecreated from direct operator'sBatchLogReader.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AttributeDescriptor<?>>attrsprivate longendStampprivate BatchLogReaderreaderprivate BatchLogReader.Factory<?>readerFactoryprivate static longserialVersionUIDprivate Partitionsplitprivate longstartStamp-
Fields inherited from class cz.o2.proxima.beam.direct.io.AbstractDirectBoundedSource
factory
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDirectBatchSource(DirectBatchSource parent, Partition split)privateDirectBatchSource(RepositoryFactory factory, BatchLogReader reader, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.io.BoundedSource.BoundedReader<StreamElement>createReader(org.apache.beam.sdk.options.PipelineOptions options)(package private) static DirectBatchSourceof(RepositoryFactory factory, BatchLogReader reader, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp)private BatchLogReaderreader()java.util.List<? extends org.apache.beam.sdk.io.BoundedSource<StreamElement>>split(long desiredBundleSizeBytes, org.apache.beam.sdk.options.PipelineOptions opts)-
Methods inherited from class cz.o2.proxima.beam.direct.io.AbstractDirectBoundedSource
getEstimatedSizeBytes, getOutputCoder
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
readerFactory
private final BatchLogReader.Factory<?> readerFactory
-
attrs
private final java.util.List<AttributeDescriptor<?>> attrs
-
startStamp
private final long startStamp
-
endStamp
private final long endStamp
-
split
@Nullable private final Partition split
-
reader
private transient BatchLogReader reader
-
-
Constructor Detail
-
DirectBatchSource
private DirectBatchSource(RepositoryFactory factory, BatchLogReader reader, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp)
-
DirectBatchSource
private DirectBatchSource(DirectBatchSource parent, Partition split)
-
-
Method Detail
-
of
static DirectBatchSource of(RepositoryFactory factory, BatchLogReader reader, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp)
-
split
public java.util.List<? extends org.apache.beam.sdk.io.BoundedSource<StreamElement>> split(long desiredBundleSizeBytes, org.apache.beam.sdk.options.PipelineOptions opts)
- Specified by:
splitin classorg.apache.beam.sdk.io.BoundedSource<StreamElement>
-
createReader
public org.apache.beam.sdk.io.BoundedSource.BoundedReader<StreamElement> createReader(org.apache.beam.sdk.options.PipelineOptions options)
- Specified by:
createReaderin classorg.apache.beam.sdk.io.BoundedSource<StreamElement>
-
reader
private BatchLogReader reader()
-
-