本文整理汇总了Java中org.apache.hadoop.fs.s3native.NativeS3FileSystem类的典型用法代码示例。如果您正苦于以下问题:Java NativeS3FileSystem类的具体用法?Java NativeS3FileSystem怎么用?Java NativeS3FileSystem使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NativeS3FileSystem类属于org.apache.hadoop.fs.s3native包,在下文中一共展示了NativeS3FileSystem类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: directWriteEnabled
import org.apache.hadoop.fs.s3native.NativeS3FileSystem; //导入依赖的package包/类
private boolean directWriteEnabled(JobConf conf) throws IOException {
Path p;
if((p = FileOutputFormat.getOutputPath(conf)) == null) {
return false;
} else {
return p.getFileSystem(conf) instanceof NativeS3FileSystem;
}
}
示例2: IxS3FileSystem
import org.apache.hadoop.fs.s3native.NativeS3FileSystem; //导入依赖的package包/类
public IxS3FileSystem(NativeS3FileSystem fileSystem) {
nativeFS = fileSystem;
}
示例3: S3NativeFS
import org.apache.hadoop.fs.s3native.NativeS3FileSystem; //导入依赖的package包/类
public S3NativeFS(URI theUri, Configuration conf) throws IOException, URISyntaxException {
super(theUri, new NativeS3FileSystem(), conf, "s3n", false);
}
示例4: isDirectWrite
import org.apache.hadoop.fs.s3native.NativeS3FileSystem; //导入依赖的package包/类
private boolean isDirectWrite(JobContext jc, Path outputPath) throws IOException {
return outputPath.getFileSystem(jc.getConfiguration()) instanceof NativeS3FileSystem;
}
示例5: isS3Root
import org.apache.hadoop.fs.s3native.NativeS3FileSystem; //导入依赖的package包/类
@Override
protected boolean isS3Root() {
return _fs instanceof NativeS3FileSystem || _fs instanceof S3FileSystem;
}