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() |
java.lang.String |
getId() |
Source.Reader<T> |
getOrCreateReader(PipelineOptions options,
CheckpointMarkT checkpointMark) |
Coder<T> |
getOutputCoder()
Returns the
Coder to 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, populateDisplayData
public Source.Reader<T> getOrCreateReader(PipelineOptions options, CheckpointMarkT checkpointMark) throws java.io.IOException
java.io.IOException
public void validate()
Source
It is recommended to use Preconditions
for implementing this
method.
public Coder<T> getOutputCoder()
Source
Coder
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(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static void clearCache()