T - type of object contained in the stream@Beta public abstract class StreamingSource<T> extends Object implements PipelineConfigurable, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_TYPE |
| Constructor and Description |
|---|
StreamingSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer) |
abstract org.apache.spark.streaming.api.java.JavaDStream<T> |
getStream(StreamingContext context)
Get the stream to read from.
|
public static final String PLUGIN_TYPE
public abstract org.apache.spark.streaming.api.java.JavaDStream<T> getStream(StreamingContext context) throws Exception
context - the streaming context for this stage of the pipelineExceptionpublic void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException
configurePipeline in interface PipelineConfigurableIllegalArgumentExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.