public class DefaultStreamingContext extends AbstractStageContext implements StreamingContext
arguments| Constructor and Description |
|---|
DefaultStreamingContext(StageSpec stageSpec,
JavaSparkExecutionContext sec,
org.apache.spark.streaming.api.java.JavaStreamingContext jsc) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(int timeout,
TxRunnable runnable) |
void |
execute(TxRunnable runnable) |
JavaSparkExecutionContext |
getSparkExecutionContext() |
org.apache.spark.streaming.api.java.JavaStreamingContext |
getSparkStreamingContext() |
void |
registerLineage(String referenceName) |
getArguments, getInputSchema, getInputSchemas, getLogicalStartTime, getMetrics, getNamespace, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getServiceURL, getServiceURL, getStageName, loadPluginClass, newPluginInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArguments, getInputSchema, getInputSchemas, getLogicalStartTime, getMetrics, getNamespace, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstancegetServiceURL, getServiceURLpublic DefaultStreamingContext(StageSpec stageSpec, JavaSparkExecutionContext sec, org.apache.spark.streaming.api.java.JavaStreamingContext jsc)
public org.apache.spark.streaming.api.java.JavaStreamingContext getSparkStreamingContext()
getSparkStreamingContext in interface StreamingContextpublic JavaSparkExecutionContext getSparkExecutionContext()
getSparkExecutionContext in interface StreamingContextpublic void registerLineage(String referenceName) throws DatasetManagementException, org.apache.tephra.TransactionFailureException
registerLineage in interface StreamingContextDatasetManagementExceptionorg.apache.tephra.TransactionFailureExceptionpublic void execute(TxRunnable runnable) throws org.apache.tephra.TransactionFailureException
execute in interface Transactionalorg.apache.tephra.TransactionFailureExceptionpublic void execute(int timeout,
TxRunnable runnable)
throws org.apache.tephra.TransactionFailureException
execute in interface Transactionalorg.apache.tephra.TransactionFailureExceptionCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.