org.apache.hadoop.fs.viewfs.ViewFileSystem源码实例Demo

类org.apache.hadoop.fs.viewfs.ViewFileSystem源码实例Demo

下面列出了org.apache.hadoop.fs.viewfs.ViewFileSystem 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: presto   文件: HiveWriteUtils.java
public static boolean isViewFileSystem(HdfsContext context, HdfsEnvironment hdfsEnvironment, Path path)
{
    try {
        return getRawFileSystem(hdfsEnvironment.getFileSystem(context, path)) instanceof ViewFileSystem;
    }
    catch (IOException e) {
        throw new PrestoException(HIVE_FILESYSTEM_ERROR, "Failed checking path: " + path, e);
    }
}
 
源代码2 项目: hadoop   文件: ViewFileSystemBaseTest.java
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
 
源代码3 项目: big-c   文件: ViewFileSystemBaseTest.java
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
 
源代码评论
动弹
沙发等你来抢
 类所在包
 类方法
 同包方法