public class SparkBatchSourceContext extends AbstractBatchContext implements BatchSourceContext, StageSubmitterContext
BatchSourceContext for spark contexts.adminarguments| Constructor and Description |
|---|
SparkBatchSourceContext(co.cask.cdap.etl.spark.batch.SparkBatchSourceFactory sourceFactory,
SparkClientContext sparkContext,
PipelineRuntime pipelineRuntime,
DatasetContext datasetContext,
StageSpec stageSpec) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTopic(String topic) |
void |
createTopic(String topic,
Map<String,String> properties) |
void |
deleteTopic(String topic) |
MessagePublisher |
getDirectMessagePublisher() |
MessageFetcher |
getMessageFetcher() |
MessagePublisher |
getMessagePublisher() |
Map<String,String> |
getTopicProperties(String topic) |
boolean |
isPreviewEnabled() |
void |
setInput(Input input) |
void |
updateTopic(String topic,
Map<String,String> properties) |
createDataset, datasetExists, discardDataset, getDataset, getDataset, getDataset, getDataset, getRuntimeArguments, releaseDataset, setRuntimeArgumentprovidegetInputSchema, getInputSchemas, getLogicalStartTime, getMetrics, getNamespace, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getServiceURL, getServiceURL, getStageName, loadPluginClass, newPluginInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDataset, datasetExists, getArguments, getRuntimeArguments, setRuntimeArgumentdiscardDataset, getDataset, getDataset, getDataset, getDataset, releaseDatasetgetInputSchema, getInputSchemas, getLogicalStartTime, getMetrics, getNamespace, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstancegetServiceURL, getServiceURLprovidegetArgumentspublic SparkBatchSourceContext(co.cask.cdap.etl.spark.batch.SparkBatchSourceFactory sourceFactory,
SparkClientContext sparkContext,
PipelineRuntime pipelineRuntime,
DatasetContext datasetContext,
StageSpec stageSpec)
public void setInput(Input input)
setInput in interface BatchSourceContextpublic boolean isPreviewEnabled()
isPreviewEnabled in interface BatchSourceContextpublic MessagePublisher getMessagePublisher()
getMessagePublisher in interface MessagingContextpublic MessagePublisher getDirectMessagePublisher()
getDirectMessagePublisher in interface MessagingContextpublic MessageFetcher getMessageFetcher()
getMessageFetcher in interface MessagingContextpublic void createTopic(String topic) throws TopicAlreadyExistsException, IOException
createTopic in interface MessagingAdminTopicAlreadyExistsExceptionIOExceptionpublic void createTopic(String topic, Map<String,String> properties) throws TopicAlreadyExistsException, IOException
createTopic in interface MessagingAdminTopicAlreadyExistsExceptionIOExceptionpublic Map<String,String> getTopicProperties(String topic) throws TopicNotFoundException, IOException
getTopicProperties in interface MessagingAdminTopicNotFoundExceptionIOExceptionpublic void updateTopic(String topic, Map<String,String> properties) throws TopicNotFoundException, IOException
updateTopic in interface MessagingAdminTopicNotFoundExceptionIOExceptionpublic void deleteTopic(String topic) throws TopicNotFoundException, IOException
deleteTopic in interface MessagingAdminTopicNotFoundExceptionIOExceptionCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.