Skip to content

Commit

Permalink
[MAPR-30583] InMemoryFileIndex changed to getFileBlockLocations in pa…
Browse files Browse the repository at this point in the history
…rallel way (apache#221)
  • Loading branch information
rsotn-mapr authored and mgorbov committed Feb 7, 2018
1 parent 1b37b08 commit 2d9e466
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ object InMemoryFileIndex extends Logging {
if (filter != null) allFiles.filter(f => filter.accept(f.getPath)) else allFiles
}

allLeafStatuses.filterNot(status => shouldFilterOut(status.getPath.getName)).map {
allLeafStatuses.par.filterNot(status => shouldFilterOut(status.getPath.getName)).map {
case f: LocatedFileStatus =>
f

Expand All @@ -302,7 +302,7 @@ object InMemoryFileIndex extends Logging {
lfs.setSymlink(f.getSymlink)
}
lfs
}
}.seq
}

/** Checks if we should filter out this path name. */
Expand Down

0 comments on commit 2d9e466

Please sign in to comment.