Package org.apache.accumulo.core.volume
Class VolumeConfiguration
- java.lang.Object
-
- org.apache.accumulo.core.volume.VolumeConfiguration
-
public class VolumeConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description VolumeConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends org.apache.hadoop.fs.FileSystem>
Volumecreate(T fs, AccumuloConfiguration acuconf)
Create a Volume with the given FileSystem that writes to the default pathstatic String
getConfiguredBaseDir(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
Deprecated.static Volume
getDefaultVolume(org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf)
static Volume
getVolume(String path, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf)
static Set<String>
getVolumeUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
static Set<String>
prefix(Set<String> bases, String suffix)
-
-
-
Method Detail
-
getVolume
public static Volume getVolume(String path, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf) throws IOException
- Throws:
IOException
-
getDefaultVolume
public static Volume getDefaultVolume(org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf) throws IOException
- Throws:
IOException
-
getConfiguredBaseDir
@Deprecated public static String getConfiguredBaseDir(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
Deprecated.
-
getVolumeUris
public static Set<String> getVolumeUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
-
create
public static <T extends org.apache.hadoop.fs.FileSystem> Volume create(T fs, AccumuloConfiguration acuconf)
Create a Volume with the given FileSystem that writes to the default path- Parameters:
fs
- A FileSystem to write to- Returns:
- A Volume instance writing to the given FileSystem in the default path
-
-