Github user ScrapCodes commented on a diff in the pull request:
https://github.com/apache/spark/pull/11139#discussion_r52418861
--- 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 --
I am not sure, but usually deprecated notice stay for a release. This can
go after next release either as 1.7.x or 2.0.
---
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]