@Test public void testRenameFileIntoDirFile() throws Exception { Path srcPath = new Path(TEST_ROOT_DIR, "testRenameSrc"); Path dstPath = new Path(TEST_ROOT_DIR, "testRenameDir/testRenameDst"); assertTrue(localFs.mkdirs(dstPath)); verifyRename(srcPath, dstPath, false); }
@Override public boolean mkdirs(Path f) throws IOException { return fs.mkdirs(f); }
ChecksumFileSystem extends FilterFileSystem { @Override public boolean mkdirs(Path f) throws IOException { return fs.mkdirs(f); } }
ChecksumFileSystem extends FilterFileSystem { @Override public boolean mkdirs(Path f) throws IOException { return fs.mkdirs(f); } ChecksumFileSystem(FileSystem fs); }
ChecksumFileSystem extends FilterFileSystem { @Override public boolean mkdirs(Path f) throws IOException { return fs.mkdirs(f); } ChecksumFileSystem(FileSystem fs); static double getApproxChkSumLength(long size); @Override void setConf(Configuration conf); @Override void setVerifyChecksum(boolean verifyChecksum); @Override void setWriteChecksum(boolean writeChecksum); @Override FileSystem getRawFileSystem(); Path getChecksumFile(Path file); static boolean isChecksumFile(Path file); long getChecksumFileLength(Path file, long fileSize); int getBytesPerSum(); @Override FSDataInputStream open(Path f, int bufferSize); @Override FSDataOutputStream append(Path f, int bufferSize,
      Progressable progress); static long getChecksumLength(long size, int bytesPerSum); @Override FSDataOutputStream create(Path f, FsPermission permission,
      boolean overwrite, int bufferSize, short replication, long blockSize,
      Progressable progress); @Override FSDataOutputStream createNonRecursive(Path f, FsPermission permission,
      boolean overwrite, int bufferSize, short replication, long blockSize,
      Progressable progress); @Override void setPermission(Path src, final FsPermission permission); @Override void setOwner(Path src, final String username, final String groupname); @Override void setAcl(Path src, final List<AclEntry> aclSpec); @Override void modifyAclEntries(Path src, final List<AclEntry> aclSpec); @Override void removeAcl(Path src); @Override void removeAclEntries(Path src, final List<AclEntry> aclSpec); @Override void removeDefaultAcl(Path src); @Override boolean setReplication(Path src, final short replication); @Override boolean rename(Path src, Path dst); @Override boolean delete(Path f, boolean recursive); @Override FileStatus[] listStatus(Path f); @Override RemoteIterator<LocatedFileStatus> listLocatedStatus(Path f); @Override boolean mkdirs(Path f); @Override void copyFromLocalFile(boolean delSrc, Path src, Path dst); @Override void copyToLocalFile(boolean delSrc, Path src, Path dst); void copyToLocalFile(Path src, Path dst, boolean copyCrc); @Override Path startLocalOutput(Path fsOutputFile, Path tmpLocalFile); @Override void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile); boolean reportChecksumFailure(Path f, FSDataInputStream in,
                                       long inPos, FSDataInputStream sums, long sumsPos); }
ChecksumFileSystem extends FilterFileSystem { @Override public boolean mkdirs(Path f) throws IOException { return fs.mkdirs(f); } ChecksumFileSystem(FileSystem fs); static double getApproxChkSumLength(long size); @Override void setConf(Configuration conf); @Override void setVerifyChecksum(boolean verifyChecksum); @Override void setWriteChecksum(boolean writeChecksum); @Override FileSystem getRawFileSystem(); Path getChecksumFile(Path file); static boolean isChecksumFile(Path file); long getChecksumFileLength(Path file, long fileSize); int getBytesPerSum(); @Override FSDataInputStream open(Path f, int bufferSize); @Override FSDataOutputStream append(Path f, int bufferSize,
      Progressable progress); static long getChecksumLength(long size, int bytesPerSum); @Override FSDataOutputStream create(Path f, FsPermission permission,
      boolean overwrite, int bufferSize, short replication, long blockSize,
      Progressable progress); @Override FSDataOutputStream createNonRecursive(Path f, FsPermission permission,
      boolean overwrite, int bufferSize, short replication, long blockSize,
      Progressable progress); @Override void setPermission(Path src, final FsPermission permission); @Override void setOwner(Path src, final String username, final String groupname); @Override void setAcl(Path src, final List<AclEntry> aclSpec); @Override void modifyAclEntries(Path src, final List<AclEntry> aclSpec); @Override void removeAcl(Path src); @Override void removeAclEntries(Path src, final List<AclEntry> aclSpec); @Override void removeDefaultAcl(Path src); @Override boolean setReplication(Path src, final short replication); @Override boolean rename(Path src, Path dst); @Override boolean delete(Path f, boolean recursive); @Override FileStatus[] listStatus(Path f); @Override RemoteIterator<LocatedFileStatus> listLocatedStatus(Path f); @Override boolean mkdirs(Path f); @Override void copyFromLocalFile(boolean delSrc, Path src, Path dst); @Override void copyToLocalFile(boolean delSrc, Path src, Path dst); void copyToLocalFile(Path src, Path dst, boolean copyCrc); @Override Path startLocalOutput(Path fsOutputFile, Path tmpLocalFile); @Override void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile); boolean reportChecksumFailure(Path f, FSDataInputStream in,
                                       long inPos, FSDataInputStream sums, long sumsPos);  }