org.apache.accumulo.core.volume
Modifier and Type | Field and Description |
---|---|
protected String |
basePath |
protected org.apache.hadoop.fs.FileSystem |
fs |
Constructor and Description |
---|
VolumeImpl(org.apache.hadoop.fs.FileSystem fs,
String basePath) |
VolumeImpl(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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(org.apache.hadoop.fs.Path p)
Convert the given Path into a Path that is relative to the base path for 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
|
String |
toString() |
protected final org.apache.hadoop.fs.FileSystem fs
protected final String basePath
public VolumeImpl(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public VolumeImpl(org.apache.hadoop.fs.FileSystem fs, String basePath)
public org.apache.hadoop.fs.FileSystem getFileSystem()
Volume
FileSystem
that Accumulo will usegetFileSystem
in interface Volume
public String getBasePath()
Volume
FileSystem
getBasePath
in interface Volume
public org.apache.hadoop.fs.Path prefixChild(org.apache.hadoop.fs.Path p)
Volume
prefixChild
in interface Volume
p
- The suffix to usepublic boolean isValidPath(org.apache.hadoop.fs.Path p)
Volume
isValidPath
in interface Volume
public org.apache.hadoop.fs.Path prefixChild(String p)
Volume
prefixChild
in interface Volume
p
- The suffix to useCopyright © 2011–2015 The Apache Software Foundation. All rights reserved.