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

下面列出了怎么用org.apache.hadoop.fs.viewfs.ViewFileSystem的API类实例代码及写法,或者点击链接到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); 
}
 
 类所在包
 类方法
 同包方法