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.core.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>>
APTransform
that reads from aBatchLogReader
using splittable DoFn.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchLogRead.BatchLogReadOptionsFactory
static interface
BatchLogRead.BatchLogReadPipelineOptions
-
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)
static BatchLogRead
of(java.util.List<AttributeDescriptor<?>> attributes, long limit, RepositoryFactory repositoryFactory, BatchLogReader reader, long startStamp, long endStamp, java.util.Map<java.lang.String,java.lang.Object> cfg)
Create theBatchLogRead
transform that reads fromBatchLogReader
in batch manner.static BatchLogRead
of(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader)
Create theBatchLogRead
transform that reads fromBatchLogReader
in batch manner.static BatchLogRead
of(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader, long startStamp, long endStamp)
Create theBatchLogRead
transform that reads fromBatchLogReader
in batch manner.-
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
-
-
-
-
Method Detail
-
of
public static BatchLogRead of(java.util.List<AttributeDescriptor<?>> attributes, long limit, Repository repo, BatchLogReader reader)
Create theBatchLogRead
transform that reads fromBatchLogReader
in batch manner.- Parameters:
attributes
- the attributes to readlimit
- limit (useLong.MAX_VALUE
for unboundedrepo
- repositoryreader
- the reader- Returns:
BatchLogRead
transform 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 theBatchLogRead
transform that reads fromBatchLogReader
in batch manner.- Parameters:
attributes
- the attributes to readlimit
- limit (useLong.MAX_VALUE
for unboundedrepo
- repositoryreader
- the readerstartStamp
- starting stamp (inclusive)endStamp
- ending stamp (exclusive)- Returns:
BatchLogRead
transform for the commit log
-
of
public static BatchLogRead of(java.util.List<AttributeDescriptor<?>> attributes, long limit, RepositoryFactory repositoryFactory, BatchLogReader reader, long startStamp, long endStamp, java.util.Map<java.lang.String,java.lang.Object> cfg)
Create theBatchLogRead
transform that reads fromBatchLogReader
in batch manner.- Parameters:
attributes
- the attributes to readlimit
- limit (useLong.MAX_VALUE
for unboundedrepositoryFactory
- repository factoryreader
- the readerstartStamp
- starting stamp (inclusive)endStamp
- ending stamp (exclusive)cfg
- configuration of the family- Returns:
CommitLogRead
transform for the commit log
-
expand
public org.apache.beam.sdk.values.PCollection<StreamElement> expand(org.apache.beam.sdk.values.PBegin input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<StreamElement>>
-
-