@@ -0,0 +1,3117 @@
+/*%0A * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0%0A * (the %22License%22). You may not use this work except in compliance with the License, which is%0A * available at www.apache.org/licenses/LICENSE-2.0%0A *%0A * This software is distributed on an %22AS IS%22 basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,%0A * either express or implied, as more fully set forth in the License.%0A *%0A * See the NOTICE file distributed with this work for information regarding copyright ownership.%0A */%0A%0Apackage alluxio.master.file.options;%0A%0Aimport alluxio.thrift.DeleteTOptions;%0A%0Aimport com.google.common.base.Objects;%0A%0Aimport javax.annotation.concurrent.NotThreadSafe;%0A%0A/**%0A * Method options for deleting a file or a directory.%0A */%0A@NotThreadSafe%0Apublic final class DeleteFileOptions %7B%0A  private boolean mRecursive;%0A  private boolean mAlluxioOnly;%0A%0A  /**%0A   * @return the default %7B@link DeleteFileOptions%7D%0A   */%0A  public static DeleteFileOptions defaults() %7B%0A    return new DeleteFileOptions();%0A  %7D%0A%0A  /**%0A   * @param options the %7B@link DeleteTOptions%7D to use%0A   */%0A  public DeleteFileOptions(DeleteTOptions options) %7B%0A    mRecursive = options.isRecursive();%0A    mAlluxioOnly = options.isAlluxioOnly();%0A  %7D%0A%0A  private DeleteFileOptions() %7B%0A    mRecursive = false;%0A    mAlluxioOnly = false;%0A  %7D%0A%0A  /**%0A   * @return the recursive flag value; if the object to be deleted is a directory, the flag%0A   *         specifies whether the directory content should be recursively deleted as well%0A   */%0A  public boolean isRecursive() %7B%0A    return mRecursive;%0A  %7D%0A%0A  /**%0A   * @return the alluxioOnly flag value; the flag specifies whether the file content should%0A   *         be removed from Alluxio, but not from UFS.%0A   */%0A  public boolean isAlluxioOnly() %7B%0A    return mAlluxioOnly;%0A  %7D%0A%0A  /**%0A   * @param recursive the recursive flag value to use; if the object to be deleted is a directory,%0A   *        the flag specifies whether the directory content should be recursively deleted as well%0A   * @return the updated options object%0A   */%0A  public DeleteFileOptions setRecursive(boolean recursive) %7B%0A    mRecursive = recursive;%0A    return this;%0A  %7D%0A%0A  /**%0A   * @param removeUFSFile the removeUFSFile flag value to use; the flag specifies whether the file%0A   *        content should be removed from Alluxio, but not from UFS.%0A   * @return the updated options object%0A   */%0A  public DeleteFileOptions setAlluxioOnly(boolean removeUFSFile) %7B%0A    mAlluxioOnly = removeUFSFile;%0A    return this;%0A  %7D%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    if (this == o) %7B%0A      return true;%0A    %7D%0A    if (!(o instanceof DeleteFileOptions)) %7B%0A      return false;%0A    %7D%0A    DeleteFileOptions that = (DeleteFileOptions) o;%0A    return Objects.equal(mRecursive, that.mRecursive)%0A        && Objects.equal(mAlluxioOnly, that.mAlluxioOnly);%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    return Objects.hashCode(mRecursive, mAlluxioOnly);%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return Objects.toStringHelper(this)%0A         .add(%22recursive%22, mRecursive)%0A         .add(%22alluxioOnly%22, mAlluxioOnly)%0A         .toString();%0A  %7D%0A%7D%0A

Add deleteFileOptions in master