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 fromBatchLogReaderin unbounded manner.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDirectBatchUnboundedSource.Checkpointstatic classDirectBatchUnboundedSource.CheckpointCoderUse 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.StringCFG_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)booleanequals(java.lang.Object o)org.apache.beam.sdk.coders.Coder<DirectBatchUnboundedSource.Checkpoint>getCheckpointMarkCoder()org.apache.beam.sdk.coders.Coder<StreamElement>getOutputCoder()inthashCode()static DirectBatchUnboundedSourceof(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)-
Methods inherited from class org.apache.beam.sdk.io.UnboundedSource
offsetBasedDeduplicationSupported, requiresDeduping
-
-
-
-
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:
splitin 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:
createReaderin classorg.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getCheckpointMarkCoder
public org.apache.beam.sdk.coders.Coder<DirectBatchUnboundedSource.Checkpoint> getCheckpointMarkCoder()
- Specified by:
getCheckpointMarkCoderin classorg.apache.beam.sdk.io.UnboundedSource<StreamElement,DirectBatchUnboundedSource.Checkpoint>
-
getOutputCoder
public org.apache.beam.sdk.coders.Coder<StreamElement> getOutputCoder()
- Overrides:
getOutputCoderin classorg.apache.beam.sdk.io.Source<StreamElement>
-
-