spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwendell <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-4518][SPARK-4519][Streaming] Refactored...
Date Mon, 24 Nov 2014 05:36:32 GMT
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3419#discussion_r20773558
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala
---
    @@ -193,57 +306,25 @@ class FileInputDStream[K: ClassTag, V: ClassTag, F <: NewInputFormat[K,V]
: Clas
             hadoopFiles.map(p => (p._1, p._2.mkString(", "))).mkString("\n") + "\n]"
         }
       }
    +}
    +
    +private[streaming]
    +object FileInputDStream {
     
       /**
    -   * Custom PathFilter class to find new files that
    -   * ... have modification time more than ignore time
    -   * ... have not been seen in the last interval
    -   * ... have modification time less than maxModTime
    +   * Minimum duration of remembering the information of selected files. Files with mod
times
    +   * older than this "window" of remembering will be ignored. So if new files are visible
    +   * within this window, then the file will get selected in the next batch.
        */
    -  private[streaming]
    -  class CustomPathFilter(maxModTime: Long) extends PathFilter {
    +  private val REMEMBER_DURATION = Minutes(1)
    --- End diff --
    
    should this be called `MINIMUM_REMEMBER_DURATION`? There is also a variable called `durationToRemember`
that might be different than this. I found it a bit confusing to have something called `durationToRemember`
and another thing called `REMEMBER_DURATION` but they can have different values.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message