Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/7600#discussion_r35288965
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/InputDStream.scala
---
@@ -47,6 +49,27 @@ abstract class InputDStream[T: ClassTag] (@transient
ssc_ : StreamingContext)
/** This is an unique identifier for the input stream. */
val id = ssc.getNewInputStreamId()
+ /**
+ * A rate estimator configured by the user to compute a dynamic
ingestion bound for this stream.
+ * @see `RateEstimator`
+ */
+ protected [streaming] val rateEstimator = newEstimator()
--- End diff --
Why do you need `rateEstimator` as a field in `DStream`? All you need
expose to modules outside DStream is the RateController. And the RateEstimator
can be within the `RateController`
---
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]