public class MicrobatchSource<T,CheckpointMarkT extends UnboundedSource.CheckpointMark> extends Source<T>
Source that accommodates Spark's micro-batch oriented nature and wraps an UnboundedSource.| Modifier and Type | Class and Description | 
|---|---|
| class  | MicrobatchSource.ReaderMostly based on  BoundedReadFromUnboundedSource's
 UnboundedToBoundedSourceAdapter, with some adjustments for Spark specifics. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | clearCache() | 
| boolean | equals(@Nullable java.lang.Object o) | 
| Coder<CheckpointMarkT> | getCheckpointMarkCoder() | 
| java.lang.String | getId() | 
| Source.Reader<T> | getOrCreateReader(PipelineOptions options,
                 CheckpointMarkT checkpointMark) | 
| Coder<T> | getOutputCoder()Returns the  Coderto use for the data read from this source. | 
| int | hashCode() | 
| void | validate()Checks that this source is valid, before it can be used in a pipeline. | 
getDefaultOutputCoder, populateDisplayDatapublic Source.Reader<T> getOrCreateReader(PipelineOptions options, CheckpointMarkT checkpointMark) throws java.io.IOException
java.io.IOExceptionpublic void validate()
SourceIt is recommended to use Preconditions for implementing this method.
public Coder<T> getOutputCoder()
SourceCoder to use for the data read from this source.getOutputCoder in class Source<T>public Coder<CheckpointMarkT> getCheckpointMarkCoder()
public java.lang.String getId()
public boolean equals(@Nullable java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void clearCache()