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

    https://github.com/apache/spark/pull/2216#discussion_r18627949
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaDStream.scala 
---
    @@ -94,6 +94,14 @@ class JavaDStream[T](val dstream: DStream[T])(implicit 
val classTag: ClassTag[T]
        * returned DStream has exactly numPartitions partitions.
        */
       def repartition(numPartitions: Int): JavaDStream[T] = 
dstream.repartition(numPartitions)
    +  
    +  /**
    +   * Print the first num 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.
    +   */
    +  override def print(num: Int): Unit = {
    --- End diff --
    
    @watermen Ah OK, my head's on straight now. The issue is really people 
extending `JavaDStream`. This doesn't help people extending `JavaDStreamLike` 
but that can't be helped.


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