public class HadoopFsProfile extends Object
HadoopFsMirror.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BASE_PATH
The key of
base path. |
static String |
KEY_COMPRESSION
The key of
CompressionCodec class name. |
| Constructor and Description |
|---|
HadoopFsProfile(String resourceName,
org.apache.hadoop.fs.Path basePath)
Creates a new instance.
|
HadoopFsProfile(String resourceName,
org.apache.hadoop.fs.Path basePath,
org.apache.hadoop.io.compress.CompressionCodec compressionCodec)
Deprecated.
Use
HadoopFsProfile(String, Path) instead |
| Modifier and Type | Method and Description |
|---|---|
static HadoopFsProfile |
convert(org.apache.hadoop.conf.Configuration configuration,
ResourceProfile profile)
Converts
ResourceProfile into SshProfile. |
org.apache.hadoop.fs.Path |
getBasePath()
Returns the target base path.
|
org.apache.hadoop.io.compress.CompressionCodec |
getCompressionCodec()
Deprecated.
from
0.7.0, WindGate does not use sequence files |
String |
getResourceName()
Returns the resource name.
|
public static final String KEY_BASE_PATH
base path.public static final String KEY_COMPRESSION
CompressionCodec class name.@Deprecated public HadoopFsProfile(String resourceName, org.apache.hadoop.fs.Path basePath, org.apache.hadoop.io.compress.CompressionCodec compressionCodec)
HadoopFsProfile(String, Path) insteadresourceName - the resource namebasePath - the base pathcompressionCodec - the compression codec, or null if does not compressIllegalArgumentException - if any parameter is nullpublic HadoopFsProfile(String resourceName, org.apache.hadoop.fs.Path basePath)
resourceName - the resource namebasePath - the base pathIllegalArgumentException - if any parameter is nullpublic static HadoopFsProfile convert(org.apache.hadoop.conf.Configuration configuration, ResourceProfile profile) throws IOException
ResourceProfile into SshProfile.configuration - the current configurationprofile - target profileIOException - if failed to initialize file systemIllegalArgumentException - if profile is not valid, or any parameter is nullpublic String getResourceName()
public org.apache.hadoop.fs.Path getBasePath()
@Deprecated public org.apache.hadoop.io.compress.CompressionCodec getCompressionCodec()
0.7.0, WindGate does not use sequence filesnull if does not compressCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.