Class DirectBatchUnboundedSource
- java.lang.Object
-
- org.apache.beam.sdk.io.Source<OutputT>
-
- org.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
-
- cz.o2.proxima.beam.core.direct.io.DirectBatchUnboundedSource
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
public class DirectBatchUnboundedSource extends org.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
Source reading fromBatchLogReader
in unbounded manner.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectBatchUnboundedSource.Checkpoint
static class
DirectBatchUnboundedSource.CheckpointCoder
Use gzip to compress the serialized checkpoint, as it might easily grow in size (batch partitions might contain many files).
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CFG_ENABLE_CHECKPOINT_PARTITION_MERGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
createReader(org.apache.beam.sdk.options.PipelineOptions options, DirectBatchUnboundedSource.Checkpoint checkpointMark)
boolean
equals(java.lang.Object o)
org.apache.beam.sdk.coders.Coder<DirectBatchUnboundedSource.Checkpoint>
getCheckpointMarkCoder()
org.apache.beam.sdk.coders.Coder<StreamElement>
getOutputCoder()
int
hashCode()
static DirectBatchUnboundedSource
of(RepositoryFactory factory, BatchLogReader reader, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp, java.util.Map<java.lang.String,java.lang.Object> cfg)
java.util.List<? extends org.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>>
split(int desiredNumSplits, org.apache.beam.sdk.options.PipelineOptions options)
-
-
-
Field Detail
-
CFG_ENABLE_CHECKPOINT_PARTITION_MERGE
public static final java.lang.String CFG_ENABLE_CHECKPOINT_PARTITION_MERGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static DirectBatchUnboundedSource of(RepositoryFactory factory, BatchLogReader reader, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp, java.util.Map<java.lang.String,java.lang.Object> cfg)
-
split
public java.util.List<? extends org.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>> split(int desiredNumSplits, org.apache.beam.sdk.options.PipelineOptions options)
- Specified by:
split
in classorg.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
-
createReader
public org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement> createReader(org.apache.beam.sdk.options.PipelineOptions options, DirectBatchUnboundedSource.Checkpoint checkpointMark)
- Specified by:
createReader
in classorg.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getCheckpointMarkCoder
public org.apache.beam.sdk.coders.Coder<DirectBatchUnboundedSource.Checkpoint> getCheckpointMarkCoder()
- Specified by:
getCheckpointMarkCoder
in classorg.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
-
getOutputCoder
public org.apache.beam.sdk.coders.Coder<StreamElement> getOutputCoder()
- Overrides:
getOutputCoder
in classorg.apache.beam.sdk.io.Source<StreamElement>
-
-