Class CommitLogRead
- 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.CommitLogRead
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
public class CommitLogRead extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<StreamElement>>
APTransform
that reads from aCommitLogReader
using splittable DoFn.- See Also:
- Serialized Form
-
-
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 CommitLogRead
of(java.lang.String observeName, Position position, long limit, RepositoryFactory repositoryFactory, CommitLogReader reader)
Create theCommitLogRead
transform.static CommitLogRead
of(java.lang.String observeName, Position position, long limit, Repository repo, CommitLogReader reader)
Create theCommitLogRead
transform.static CommitLogRead
ofBounded(java.lang.String observeName, long limit, RepositoryFactory repositoryFactory, CommitLogReader reader)
Create theCommitLogRead
transform.-
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 CommitLogRead of(java.lang.String observeName, Position position, long limit, Repository repo, CommitLogReader reader)
Create theCommitLogRead
transform.- Parameters:
observeName
- name of the observerposition
-Position
to read fromlimit
- limit (useLong.MAX_VALUE
for unboundedrepo
- repositoryreader
- the reader- Returns:
CommitLogRead
transform for the commit log
-
of
public static CommitLogRead of(java.lang.String observeName, Position position, long limit, RepositoryFactory repositoryFactory, CommitLogReader reader)
Create theCommitLogRead
transform.- Parameters:
observeName
- name of the observerposition
-Position
to read fromlimit
- limit (useLong.MAX_VALUE
for unboundedrepositoryFactory
- repository factoryreader
- the reader- Returns:
CommitLogRead
transform for the commit log
-
ofBounded
public static CommitLogRead ofBounded(java.lang.String observeName, long limit, RepositoryFactory repositoryFactory, CommitLogReader reader)
Create theCommitLogRead
transform.- Parameters:
observeName
- name of the observerlimit
- limit (useLong.MAX_VALUE
for unboundedrepositoryFactory
- repository factoryreader
- the reader- 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>>
-
-