| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.fs.PathFilter |
HIDDEN_FILES_FULL_PATH_FILTER
This works with
RemoteIterator which (potentially) produces all files recursively
so looking for hidden folders must look at whole path, not just the the last part of it as
would be appropriate w/o recursive listing. |
| Constructor and Description |
|---|
RemoteIteratorWithFilter(org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> iter,
org.apache.hadoop.fs.PathFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
org.apache.hadoop.fs.LocatedFileStatus |
next() |
public static final org.apache.hadoop.fs.PathFilter HIDDEN_FILES_FULL_PATH_FILTER
RemoteIterator which (potentially) produces all files recursively
so looking for hidden folders must look at whole path, not just the the last part of it as
would be appropriate w/o recursive listing.public RemoteIteratorWithFilter(org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> iter,
org.apache.hadoop.fs.PathFilter filter)
throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
hasNext in interface org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus>IOExceptionpublic org.apache.hadoop.fs.LocatedFileStatus next()
throws IOException
next in interface org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus>IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.