spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangxiaojing <...@git.apache.org>
Subject [GitHub] spark pull request: [spark-3586][streaming]Support nested director...
Date Sat, 11 Oct 2014 10:05:35 GMT
Github user wangxiaojing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2765#discussion_r18740834
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala
---
    @@ -118,6 +119,18 @@ class FileInputDStream[K: ClassTag, V: ClassTag, F <: NewInputFormat[K,V]
: Clas
         (newFiles, filter.minNewFileModTime)
       }
     
    +  def getPathList( path:Path, fs:FileSystem):List[Path]={
    +    val filter = new SubPathFilter()
    +    var pathList = List[Path]()
    +    fs.listStatus(path,filter).map(x=>{
    +      if(x.isDirectory()){
    --- End diff --
    
    Yes,because this only support subdirectories´╝îbecause nested all the directories´╝îprocessing
time is too long 


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