package tachyon.master;

import java.io.IOException;

/**
 * The type of Dependency.
 */
public enum DependencyType {
  Wide(1), Narrow(2);

  public static DependencyType getDependencyType(int value) throws IOException {
    if (value == 1) {
      return Wide;
    } else if (value == 2) {
      return Narrow;
    }

    throw new IOException("Unknown DependencyType value " + value);
  }

  private final int mValue;

  private DependencyType(int value) {
    mValue = value;
  }

  /**
   * Get the integer value of this enum value.
   */
  public int getValue() {
    return mValue;
  }
}
@@ -80,65 +80,745 @@
 ency
-.%0A */%0Apublic enum DependencyType %7B%0A  Wide(1), Narrow(2);%0A
+, Wide and Narrow. The difference is that how many input files does each%0A * output file require in the Dependency. In Narrow Dependency, each output file only requires one%0A * input file, while in Wide Dependency it requires more than one.%0A */%0Apublic enum DependencyType %7B%0A  /**%0A   * Wide Dependency means that each output file requires more than one input files.%0A   */%0A  Wide(1),%0A  /**%0A   * Narrow Dependency means that each output file only requires one input file.%0A   */%0A  Narrow(2);%0A%0A  /**%0A   * Get the enum value with the given integer value. It will check the legality.%0A   * %0A   * @param value%0A   *          The integer value, 1 or 2, means Wide or Narrow%0A   * @return the enum value of DependencyType%0A   * @throws IOException%0A   */
 %0A  p

Comment more about DependencyType