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(Object o) |
Coder<CheckpointMarkT> |
getCheckpointMarkCoder() |
Coder<T> |
getDefaultOutputCoder() |
String |
getId() |
Source.Reader<T> |
getOrCreateReader(PipelineOptions options,
CheckpointMarkT checkpointMark) |
int |
hashCode() |
void |
validate() |
populateDisplayDatapublic Source.Reader<T> getOrCreateReader(PipelineOptions options, CheckpointMarkT checkpointMark) throws IOException
IOExceptionpublic Coder<T> getDefaultOutputCoder()
getDefaultOutputCoder in class Source<T>public Coder<CheckpointMarkT> getCheckpointMarkCoder()
public String getId()
public static void clearCache()
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.