Package org.apache.hadoop.fs.s3a
Class Listing.AcceptAllButSelf
java.lang.Object
org.apache.hadoop.fs.s3a.Listing.AcceptAllButSelf
- Enclosing class:
- Listing
Accept all entries except the base path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(org.apache.hadoop.fs.FileStatus status) booleanAccept all prefixes except the one for the base path, "self".booleanaccept(org.apache.hadoop.fs.Path keyPath, software.amazon.awssdk.services.s3.model.S3Object s3Object) Reject a s3Object entry if the key path is the qualified Path.
-
Constructor Details
-
AcceptAllButSelf
public AcceptAllButSelf(org.apache.hadoop.fs.Path qualifiedPath) Constructor.- Parameters:
qualifiedPath- an already-qualified path.
-
-
Method Details
-
accept
public boolean accept(org.apache.hadoop.fs.Path keyPath, software.amazon.awssdk.services.s3.model.S3Object s3Object) Reject a s3Object entry if the key path is the qualified Path.- Parameters:
keyPath- key path of the entrys3Object- s3Object entry- Returns:
- true if the entry is accepted (i.e. that a status entry should be generated.)
-
accept
Accept all prefixes except the one for the base path, "self".- Parameters:
keyPath- qualified path to the entryprefix- common prefix in listing.- Returns:
- true if the entry is accepted (i.e. that a status entry should be generated.
-
accept
public boolean accept(org.apache.hadoop.fs.FileStatus status)
-