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

项目:carbondata    文件:ViewFSCarbonFile.java   
@Override
public boolean renameForce(String changetoName) {
  FileSystem fs;
  try {
    fs = fileStatus.getPath().getFileSystem(FileFactory.getConfiguration());
    if (fs instanceof ViewFileSystem) {
      fs.delete(new Path(changetoName), true);
      fs.rename(fileStatus.getPath(), new Path(changetoName));
      return true;
    } else {
      return false;
    }
  } catch (IOException e) {
    LOGGER.error("Exception occured" + e.getMessage());
    return false;
  }
}
项目:hadoop-oss    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hadoop    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:aliyun-oss-hadoop-fs    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:big-c    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hadoop-plus    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hops    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hadoop-TCP    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hardfs    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}
项目:hadoop-on-lustre2    文件:ViewFileSystemBaseTest.java   
@Test
public void testGetMountPoints() {
  ViewFileSystem viewfs = (ViewFileSystem) fsView;
  MountPoint[] mountPoints = viewfs.getMountPoints();
  Assert.assertEquals(getExpectedMountPoints(), mountPoints.length); 
}