本文整理汇总了Java中org.apache.hadoop.fs.http.client.HttpFSFileSystem.Operation方法的典型用法代码示例。如果您正苦于以下问题:Java HttpFSFileSystem.Operation方法的具体用法?Java HttpFSFileSystem.Operation怎么用?Java HttpFSFileSystem.Operation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.fs.http.client.HttpFSFileSystem
的用法示例。
在下文中一共展示了HttpFSFileSystem.Operation方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: enforceRootPath
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
private void enforceRootPath(HttpFSFileSystem.Operation op, String path) {
if (!path.equals("/")) {
throw new UnsupportedOperationException(
MessageFormat.format("Operation [{0}], invalid path [{1}], must be '/'",
op, path));
}
}
示例2: enforceRootPath
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
private void enforceRootPath(HttpFSFileSystem.Operation op, String path) {
if (!path.equals("/")) {
throw new UnsupportedOperationException(MessageFormat
.format("Operation [{0}], invalid path [{1}], must be '/'", op,
path));
}
}
示例3: HttpFSParametersProvider
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
public HttpFSParametersProvider() {
super(HttpFSFileSystem.OP_PARAM, HttpFSFileSystem.Operation.class,
PARAMS_DEF);
}
示例4: OperationParam
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
/**
* Constructor.
*/
public OperationParam(String operation) {
super(NAME, HttpFSFileSystem.Operation.class,
HttpFSFileSystem.Operation.valueOf(
StringUtils.toUpperCase(operation)));
}
示例5: OperationParam
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
/**
* Constructor.
*/
public OperationParam(String operation) {
super(NAME, HttpFSFileSystem.Operation.class,
HttpFSFileSystem.Operation.valueOf(operation.toUpperCase()));
}
示例6: HttpFSParametersProvider
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
public HttpFSParametersProvider() {
super(HttpFSFileSystem.OP_PARAM, HttpFSFileSystem.Operation.class,
PARAMS_DEF);
}
示例7: OperationParam
import org.apache.hadoop.fs.http.client.HttpFSFileSystem; //导入方法依赖的package包/类
/**
* Constructor.
*/
public OperationParam(String operation) {
super(NAME, HttpFSFileSystem.Operation.class,
HttpFSFileSystem.Operation.valueOf(operation.toUpperCase()));
}