FileStatusAcceptorpublic static class FileStatusAcceptor.AcceptAllButSelf extends java.lang.Object implements FileStatusAcceptor
FileStatusAcceptor.AcceptAllButSelf, FileStatusAcceptor.AcceptFilesOnly| Constructor | Description |
|---|---|
AcceptAllButSelf(org.apache.hadoop.fs.Path qualifiedPath) |
Constructor.
|
| Modifier and Type | Method | 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,
java.lang.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,
java.lang.String prefix)
accept in interface FileStatusAcceptorkeyPath - qualified path to the entryprefix - common prefix in listing.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.