Class FSUtils.HFileFilter

java.lang.Object
org.apache.hadoop.hbase.util.AbstractFileStatusFilter
org.apache.hadoop.hbase.util.FSUtils.HFileFilter
All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter, FileStatusFilter
Enclosing class:
FSUtils

public static class FSUtils.HFileFilter extends AbstractFileStatusFilter
Filter for HFiles that excludes reference files.
  • Field Details

    • fs

      final org.apache.hadoop.fs.FileSystem fs
  • Constructor Details

    • HFileFilter

      public HFileFilter(org.apache.hadoop.fs.FileSystem fs)
  • Method Details

    • accept

      protected boolean accept(org.apache.hadoop.fs.Path p, @CheckForNull Boolean isDir)
      Description copied from class: AbstractFileStatusFilter
      Filters out a path. Can be given an optional directory hint to avoid filestatus lookup.
      Specified by:
      accept in class AbstractFileStatusFilter
      Parameters:
      p - A filesystem path
      isDir - An optional boolean indicating whether the path is a directory or not
      Returns:
      true if the path is accepted, false if the path is filtered out