Enum Class FsVolumeImpl.BlockDirFilter

java.lang.Object
java.lang.Enum<FsVolumeImpl.BlockDirFilter>
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsVolumeImpl.BlockDirFilter
All Implemented Interfaces:
FilenameFilter, Serializable, Comparable<FsVolumeImpl.BlockDirFilter>, Constable
Enclosing class:
FsVolumeImpl

public static enum FsVolumeImpl.BlockDirFilter extends Enum<FsVolumeImpl.BlockDirFilter> implements FilenameFilter
Filter for block file names stored on the file system volumes.
  • Enum Constant Details

  • Method Details

    • values

      public static FsVolumeImpl.BlockDirFilter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FsVolumeImpl.BlockDirFilter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • accept

      public boolean accept(File dir, String name)
      Specified by:
      accept in interface FilenameFilter