@Experimental(value=SOURCE_SINK)
public class SyntheticUnboundedSource
extends org.apache.beam.sdk.io.UnboundedSource<org.apache.beam.sdk.values.KV<byte[],byte[]>,org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint>
SyntheticUnboundedSource that reads KV<byte[], byte[]>.| Constructor and Description |
|---|
SyntheticUnboundedSource(SyntheticSourceOptions sourceOptions) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<org.apache.beam.sdk.values.KV<byte[],byte[]>> |
createReader(org.apache.beam.sdk.options.PipelineOptions options,
@Nullable org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint checkpoint) |
org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint> |
getCheckpointMarkCoder() |
org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<byte[],byte[]>> |
getOutputCoder() |
java.util.List<SyntheticUnboundedSource> |
split(int desiredNumSplits,
org.apache.beam.sdk.options.PipelineOptions options) |
void |
validate() |
public SyntheticUnboundedSource(SyntheticSourceOptions sourceOptions)
public org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<byte[],byte[]>> getOutputCoder()
getOutputCoder in class org.apache.beam.sdk.io.Source<org.apache.beam.sdk.values.KV<byte[],byte[]>>public void validate()
validate in class org.apache.beam.sdk.io.Source<org.apache.beam.sdk.values.KV<byte[],byte[]>>public org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint> getCheckpointMarkCoder()
getCheckpointMarkCoder in class org.apache.beam.sdk.io.UnboundedSource<org.apache.beam.sdk.values.KV<byte[],byte[]>,org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint>public org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<org.apache.beam.sdk.values.KV<byte[],byte[]>> createReader(org.apache.beam.sdk.options.PipelineOptions options,
@Nullable org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint checkpoint)
createReader in class org.apache.beam.sdk.io.UnboundedSource<org.apache.beam.sdk.values.KV<byte[],byte[]>,org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint>public java.util.List<SyntheticUnboundedSource> split(int desiredNumSplits, org.apache.beam.sdk.options.PipelineOptions options)
split in class org.apache.beam.sdk.io.UnboundedSource<org.apache.beam.sdk.values.KV<byte[],byte[]>,org.apache.beam.sdk.io.synthetic.SyntheticRecordsCheckpoint>