Package cz.o2.proxima.beam.direct.io
Class BatchLogRead
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<StreamElement>>
-
- cz.o2.proxima.beam.direct.io.BatchLogRead
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
public class BatchLogRead extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<StreamElement>>
APTransformthat reads from aBatchLogReaderusing splittable DoFn.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classBatchLogRead.BatchLogReadFn
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AttributeDescriptor<?>>attributesprivate longendStampprivate longlimitprivate BatchLogReader.Factory<?>readerFactoryprivate RepositoryFactoryrepoFactoryprivate longstartStamp
-
Constructor Summary
Constructors Constructor Description BatchLogRead(java.util.List<AttributeDescriptor<?>> attributes, long limit, RepositoryFactory repoFactory, BatchLogReader.Factory<?> readerFactory, long startStamp, long endStamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<StreamElement>expand(org.apache.beam.sdk.values.PBegin input)(package private) BlockingQueueLogObserver.BatchLogObservernewObserver(java.lang.String name, long limit)static BatchLogReadof(java.util.List<AttributeDescriptor<?>> attributes, long limit, RepositoryFactory repositoryFactory, BatchLogReader reader, long startStamp, long endStamp)Create theBatchLogReadtransform that reads fromBatchLogReaderin batch manner.static BatchLogReadof(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader)Create theBatchLogReadtransform that reads fromBatchLogReaderin batch manner.static BatchLogReadof(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader, long startStamp, long endStamp)Create theBatchLogReadtransform that reads fromBatchLogReaderin batch manner.
-
-
-
Field Detail
-
attributes
private final java.util.List<AttributeDescriptor<?>> attributes
-
limit
private final long limit
-
repoFactory
private final RepositoryFactory repoFactory
-
readerFactory
private final BatchLogReader.Factory<?> readerFactory
-
startStamp
private final long startStamp
-
endStamp
private final long endStamp
-
-
Constructor Detail
-
BatchLogRead
BatchLogRead(java.util.List<AttributeDescriptor<?>> attributes, long limit, RepositoryFactory repoFactory, BatchLogReader.Factory<?> readerFactory, long startStamp, long endStamp)
-
-
Method Detail
-
of
public static BatchLogRead of(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader)
Create theBatchLogReadtransform that reads fromBatchLogReaderin batch manner.- Parameters:
attributes- the attributes to readlimit- limit (useLong.MAX_VALUEfor unboundedrepo- repositoryreader- the reader- Returns:
BatchLogReadtransform for the commit log
-
of
public static BatchLogRead of(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader, long startStamp, long endStamp)
Create theBatchLogReadtransform that reads fromBatchLogReaderin batch manner.- Parameters:
attributes- the attributes to readlimit- limit (useLong.MAX_VALUEfor unboundedrepo- repositoryreader- the readerstartStamp- starting stamp (inclusive)endStamp- ending stamp (exclusive)- Returns:
BatchLogReadtransform for the commit log
-
of
public static BatchLogRead of(java.util.List<AttributeDescriptor<?>> attributes, long limit, RepositoryFactory repositoryFactory, BatchLogReader reader, long startStamp, long endStamp)
Create theBatchLogReadtransform that reads fromBatchLogReaderin batch manner.- Parameters:
attributes- the attributes to readlimit- limit (useLong.MAX_VALUEfor unboundedrepositoryFactory- repository factoryreader- the readerstartStamp- starting stamp (inclusive)endStamp- ending stamp (exclusive)- Returns:
CommitLogReadtransform for the commit log
-
expand
public org.apache.beam.sdk.values.PCollection<StreamElement> expand(org.apache.beam.sdk.values.PBegin input)
- Specified by:
expandin classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<StreamElement>>
-
newObserver
BlockingQueueLogObserver.BatchLogObserver newObserver(java.lang.String name, long limit)
-
-