public class ValuesSource<T> extends UnboundedSource<T,UnboundedSource.CheckpointMark>
Iterable.UnboundedSource.CheckpointMark, UnboundedSource.UnboundedReader<OutputT>Source.Reader<T>| Constructor and Description |
|---|
ValuesSource(Iterable<T> values,
Coder<T> coder) |
| Modifier and Type | Method and Description |
|---|---|
UnboundedSource.UnboundedReader<T> |
createReader(PipelineOptions options,
UnboundedSource.CheckpointMark checkpointMark) |
Coder<UnboundedSource.CheckpointMark> |
getCheckpointMarkCoder() |
Coder<T> |
getDefaultOutputCoder() |
List<? extends UnboundedSource<T,UnboundedSource.CheckpointMark>> |
split(int desiredNumSplits,
PipelineOptions options) |
requiresDedupinggetOutputCoder, populateDisplayData, validatepublic List<? extends UnboundedSource<T,UnboundedSource.CheckpointMark>> split(int desiredNumSplits, PipelineOptions options) throws Exception
split in class UnboundedSource<T,UnboundedSource.CheckpointMark>Exceptionpublic UnboundedSource.UnboundedReader<T> createReader(PipelineOptions options, @Nullable UnboundedSource.CheckpointMark checkpointMark)
createReader in class UnboundedSource<T,UnboundedSource.CheckpointMark>@Nullable public Coder<UnboundedSource.CheckpointMark> getCheckpointMarkCoder()
getCheckpointMarkCoder in class UnboundedSource<T,UnboundedSource.CheckpointMark>public Coder<T> getDefaultOutputCoder()
getDefaultOutputCoder in class Source<T>Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.