Class Listing.AcceptAllButSelf

java.lang.Object
org.apache.hadoop.fs.s3a.Listing.AcceptAllButSelf
Enclosing class:
Listing

public static class Listing.AcceptAllButSelf extends Object
Accept all entries except the base path.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AcceptAllButSelf(org.apache.hadoop.fs.Path qualifiedPath)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(org.apache.hadoop.fs.FileStatus status)
     
    boolean
    accept(org.apache.hadoop.fs.Path keyPath, String prefix)
    Accept all prefixes except the one for the base path, "self".
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 entry
      s3Object - s3Object entry
      Returns:
      true if the entry is accepted (i.e. that a status entry should be generated.)
    • accept

      public boolean accept(org.apache.hadoop.fs.Path keyPath, String prefix)
      Accept all prefixes except the one for the base path, "self".
      Parameters:
      keyPath - qualified path to the entry
      prefix - 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)