public class NonConfiguredVolume extends Object implements Volume
Property.INSTANCE_VOLUMES
This is useful to handle volumes that have been removed from accumulo-site.xml but references to these volumes have not been updated. This Volume should
never be used to create new files, only to read existing files.Constructor and Description |
---|
NonConfiguredVolume(org.apache.hadoop.fs.FileSystem fs) |
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 |
int |
hashCode() |
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() |
public NonConfiguredVolume(org.apache.hadoop.fs.FileSystem fs)
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 org.apache.hadoop.fs.Path prefixChild(String p)
Volume
prefixChild
in interface Volume
p
- The suffix to usepublic boolean isValidPath(org.apache.hadoop.fs.Path p)
Volume
isValidPath
in interface Volume
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.