Package org.apache.accumulo.core.volume
Interface Volume
-
- All Known Implementing Classes:
VolumeImpl
public interface VolumeEncapsulates aFileSystemand a basePathwithin 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 StringgetBasePath()The base path which Accumulo will use within the givenFileSystemorg.apache.hadoop.fs.FileSystemgetFileSystem()AFileSystemthat Accumulo will usebooleanisValidPath(org.apache.hadoop.fs.Path p)Determine if the Path is valid on this Volume.org.apache.hadoop.fs.PathprefixChild(String p)Convert the given child path into a Path that is relative to the base path for this Volumeorg.apache.hadoop.fs.PathprefixChild(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()
AFileSystemthat 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
-
-