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 Volume
create(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
static <T extends org.apache.hadoop.fs.FileSystem>
Volumecreate(T fs, String basePath)
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 String[]
getVolumeUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
static String[]
prefix(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 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
-
create
public static <T extends org.apache.hadoop.fs.FileSystem> Volume create(T fs, String basePath)
-
create
public static Volume create(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
- Throws:
IOException
-
-