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

    https://github.com/apache/spark/pull/4101#discussion_r23148802
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaStreamingContext.scala
 ---
    @@ -250,22 +251,54 @@ class JavaStreamingContext(val ssc: StreamingContext) 
extends Closeable {
        * Files must be written to the monitored directory by "moving" them 
from another
        * location within the same file system. File names starting with . are 
ignored.
        * @param directory HDFS directory to monitor for new file
    +   * @param kClass class of key for reading HDFS file
    +   * @param vClass class of value for reading HDFS file
    +   * @param fClass class of input format for reading HDFS file
        * @tparam K Key type for reading HDFS file
        * @tparam V Value type for reading HDFS file
        * @tparam F Input format for reading HDFS file
        */
       def fileStream[K, V, F <: NewInputFormat[K, V]](
    -      directory: String): JavaPairInputDStream[K, V] = {
    -    implicit val cmk: ClassTag[K] =
    -      implicitly[ClassTag[AnyRef]].asInstanceOf[ClassTag[K]]
    -    implicit val cmv: ClassTag[V] =
    -      implicitly[ClassTag[AnyRef]].asInstanceOf[ClassTag[V]]
    -    implicit val cmf: ClassTag[F] =
    -      implicitly[ClassTag[AnyRef]].asInstanceOf[ClassTag[F]]
    +      directory: String,
    --- End diff --
    
    I think you'll have to keep and deprecate the existing method. At least, 
that removes the need for a Mima exclusion, and doesn't do any harm.


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