Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11139#discussion_r52422438
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaDStreamLike.scala
 ---
    @@ -284,50 +264,6 @@ trait JavaDStreamLike[T, This <: JavaDStreamLike[T, 
This, R], R <: JavaRDDLike[T
       /**
        * Apply a function to each RDD in this DStream. This is an output 
operator, so
        * 'this' DStream will be registered as an output stream and therefore 
materialized.
    -   *
    -   * @deprecated  As of release 0.9.0, replaced by foreachRDD
    -   */
    -  @deprecated("Use foreachRDD", "0.9.0")
    -  def foreach(foreachFunc: JFunction[R, Void]) {
    -    foreachRDD(foreachFunc)
    -  }
    -
    -  /**
    -   * Apply a function to each RDD in this DStream. This is an output 
operator, so
    -   * 'this' DStream will be registered as an output stream and therefore 
materialized.
    -   *
    -   * @deprecated  As of release 0.9.0, replaced by foreachRDD
    -   */
    -  @deprecated("Use foreachRDD", "0.9.0")
    -  def foreach(foreachFunc: JFunction2[R, Time, Void]) {
    -    foreachRDD(foreachFunc)
    -  }
    -
    -  /**
    -   * Apply a function to each RDD in this DStream. This is an output 
operator, so
    -   * 'this' DStream will be registered as an output stream and therefore 
materialized.
    -   *
    -   * @deprecated  As of release 1.6.0, replaced by 
foreachRDD(JVoidFunction)
    -   */
    -  @deprecated("Use foreachRDD(foreachFunc: JVoidFunction[R])", "1.6.0")
    --- End diff --
    
    While I agree for releases in 1.x, I would not expect this to be true 
across major releases.


---
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]

Reply via email to