public static class FileStatusAcceptor.AcceptAllButSelf extends Object implements FileStatusAcceptor
FileStatusAcceptor.AcceptAllButSelf, FileStatusAcceptor.AcceptFilesOnly| Constructor and Description |
|---|
AcceptAllButSelf(org.apache.hadoop.fs.Path qualifiedPath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.hadoop.fs.Path keyPath,
com.aliyun.oss.model.OSSObjectSummary summary)
Reject a summary entry if the key path is the qualified Path.
|
boolean |
accept(org.apache.hadoop.fs.Path keyPath,
String prefix)
Accept all prefixes except the one for the base path, "self".
|
public AcceptAllButSelf(org.apache.hadoop.fs.Path qualifiedPath)
qualifiedPath - an already-qualified path.public boolean accept(org.apache.hadoop.fs.Path keyPath,
com.aliyun.oss.model.OSSObjectSummary summary)
accept in interface FileStatusAcceptorkeyPath - key path of the entrysummary - summary entrypublic boolean accept(org.apache.hadoop.fs.Path keyPath,
String prefix)
accept in interface FileStatusAcceptorkeyPath - qualified path to the entryprefix - common prefix in listing.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.