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.Reader
Mostly based on
BoundedReadFromUnboundedSource's
UnboundedToBoundedSourceAdapter,
with some adjustments for Spark specifics. |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
boolean |
equals(java.lang.Object o) |
Coder<CheckpointMarkT> |
getCheckpointMarkCoder() |
Coder<T> |
getDefaultOutputCoder()
Returns the default
Coder to use for the data read from this source. |
java.lang.String |
getId() |
Source.Reader<T> |
getOrCreateReader(PipelineOptions options,
CheckpointMarkT checkpointMark) |
int |
hashCode() |
void |
validate()
Checks that this source is valid, before it can be used in a pipeline.
|
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> getDefaultOutputCoder()
SourceCoder to use for the data read from this source.getDefaultOutputCoder in class Source<T>public Coder<CheckpointMarkT> getCheckpointMarkCoder()
public java.lang.String getId()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void clearCache()