Package org.apache.accumulo.core.volume
Interface Volume
-
- All Known Implementing Classes:
NonConfiguredVolume
,VolumeImpl
public interface Volume
Encapsulates aFileSystem
and a basePath
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 givenFileSystem
org.apache.hadoop.fs.FileSystem
getFileSystem()
AFileSystem
that Accumulo will useboolean
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 Volumeorg.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()
AFileSystem
that Accumulo will use
-
getBasePath
String getBasePath()
The base path which Accumulo will use within the givenFileSystem
-
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
-
-