Interface Volume

  • All Known Implementing Classes:
    NonConfiguredVolume, VolumeImpl

    public interface Volume
    Encapsulates a FileSystem and a base Path within that filesystem. This also avoid the necessity to pass around a Configuration.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getBasePath()
      The base path which Accumulo will use within the given FileSystem
      org.apache.hadoop.fs.FileSystem getFileSystem()
      A FileSystem that Accumulo will use
      boolean isValidPath​(org.apache.hadoop.fs.Path p)
      Determine if the Path is valid on this Volume.
      org.apache.hadoop.fs.Path prefixChild​(String p)
      Convert the given child path into a Path that is relative to the base path for this Volume
      org.apache.hadoop.fs.Path prefixChild​(org.apache.hadoop.fs.Path p)
      Convert the given Path into a Path that is relative to the base path for this Volume
    • Method Detail

      • getFileSystem

        org.apache.hadoop.fs.FileSystem getFileSystem()
        A FileSystem that Accumulo will use
      • getBasePath

        String getBasePath()
        The base path which Accumulo will use within the given FileSystem
      • prefixChild

        org.apache.hadoop.fs.Path prefixChild​(org.apache.hadoop.fs.Path p)
        Convert the given Path into a Path that is relative to the base path for this Volume
        Parameters:
        p - The suffix to use
        Returns:
        A Path for this Volume with the provided suffix
      • prefixChild

        org.apache.hadoop.fs.Path prefixChild​(String p)
        Convert the given child path into a Path that is relative to the base path for this Volume
        Parameters:
        p - The suffix to use
        Returns:
        A Path for this Volume with the provided suffix
      • isValidPath

        boolean isValidPath​(org.apache.hadoop.fs.Path p)
        Determine if the Path is valid on this Volume. A Path is valid if it is contained in the Volume's FileSystem and is rooted beneath the basePath