Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/6034#discussion_r30390441
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
@@ -111,6 +112,50 @@ abstract class DStream[T: ClassTag] (
/* Set the creation call site */
private[streaming] val creationSite = DStream.getCreationSite()
+ /**
+ * The base scope associated with the operation that created this
DStream.
+ *
+ * This is the medium through which we pass the DStream operation name
(e.g. updatedStateByKey)
+ * to the RDDs created by this DStream. Note that we never use this
scope directly in RDDs.
+ * Instead, we instantiate a new scope during each call to `compute`
based on this one.
+ *
+ * This is not defined if the DStream is created outside of one of the
public DStream operations.
+ */
+ private[streaming] val baseScope: Option[String] = {
+ Option(ssc.sc.getLocalProperty(SparkContext.RDD_SCOPE_KEY))
+ }
+
+ /**
+ * An optional custom name for all scopes generated by this DStream.
+ * If None, the name of the operation that created this DStream will be
used.
+ */
+ protected val customScopeName: Option[String] = None
--- End diff --
Ok, `protected[streaming]` it is
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]