List of usage examples for org.apache.hadoop.hdfs.web.resources DestinationParam DestinationParam
public DestinationParam(final String str)
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
/** * Create a symlink pointing to the destination path. * * @see org.apache.hadoop.fs.Hdfs#createSymlink(Path, Path, boolean) *//* w w w. j ava 2s . c om*/ public void createSymlink(Path destination, Path f, boolean createParent) throws IOException { statistics.incrementWriteOps(1); final HttpOpParam.Op op = PutOpParam.Op.CREATESYMLINK; new FsPathRunner(op, f, new DestinationParam(makeQualified(destination).toUri().getPath()), new CreateParentParam(createParent)).run(); }
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
@Override public boolean rename(final Path src, final Path dst) throws IOException { statistics.incrementWriteOps(1);/*from w w w . j a va2 s . c om*/ final HttpOpParam.Op op = PutOpParam.Op.RENAME; return new FsPathBooleanRunner(op, src, new DestinationParam(makeQualified(dst).toUri().getPath())).run(); }
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
@SuppressWarnings("deprecation") @Override/*from w w w . j ava 2 s. co m*/ public void rename(final Path src, final Path dst, final Options.Rename... options) throws IOException { statistics.incrementWriteOps(1); final HttpOpParam.Op op = PutOpParam.Op.RENAME; new FsPathRunner(op, src, new DestinationParam(makeQualified(dst).toUri().getPath()), new RenameOptionSetParam(options)).run(); }