| Constructor and Description |
|---|
AcceptAllButSelfAndS3nDirs(org.apache.hadoop.fs.Path qualifiedPath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.hadoop.fs.FileStatus status)
Predicate to decide whether or not to accept a file status.
|
boolean |
accept(org.apache.hadoop.fs.Path keyPath,
com.amazonaws.services.s3.model.S3ObjectSummary summary)
Reject a summary entry if the key path is the qualified Path, or
it ends with
"_$folder$". |
boolean |
accept(org.apache.hadoop.fs.Path keyPath,
String prefix)
Accept all prefixes except the one for the base path, "self".
|
public AcceptAllButSelfAndS3nDirs(org.apache.hadoop.fs.Path qualifiedPath)
qualifiedPath - an already-qualified path.public boolean accept(org.apache.hadoop.fs.Path keyPath,
com.amazonaws.services.s3.model.S3ObjectSummary summary)
"_$folder$".keyPath - key path of the entrysummary - summary entrypublic boolean accept(org.apache.hadoop.fs.Path keyPath,
String prefix)
keyPath - qualified path to the entryprefix - common prefix in listing.public boolean accept(org.apache.hadoop.fs.FileStatus status)
status - file status containing file path informationCopyright © 2008–2022 Apache Software Foundation. All rights reserved.