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

    https://github.com/apache/spark/pull/2216#discussion_r17348838
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaDStreamLike.scala
 ---
    @@ -50,8 +50,8 @@ trait JavaDStreamLike[T, This <: JavaDStreamLike[T, This, 
R], R <: JavaRDDLike[T
        * Print the first ten elements of each RDD generated in this DStream. 
This is an output
        * operator, so this DStream will be registered as an output stream and 
there materialized.
        */
    -  def print(): Unit = {
    -    dstream.print()
    +  def print(num: Int = 10): Unit = {
    --- End diff --
    
    Adding this optional parameter means that `print()` no longer exists in 
Java. You've removed it from the public API. I'm pretty sure you will need two 
methods, rather than a default Scala parameter.


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