Example usage for org.apache.hadoop.hdfs.web.resources RenameOptionSetParam RenameOptionSetParam

List of usage examples for org.apache.hadoop.hdfs.web.resources RenameOptionSetParam RenameOptionSetParam

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.web.resources RenameOptionSetParam RenameOptionSetParam.

Prototype

public RenameOptionSetParam(final String str) 

Source Link

Document

Constructor.

Usage

From source file:com.bigstep.datalake.DLFileSystem.java

License:Apache License

@SuppressWarnings("deprecation")
@Override/*  www .  java2  s.c om*/
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();
}