de.hpi.fgis.voidgen.hadoop
Enum HadoopProperty

java.lang.Object
  extended by java.lang.Enum<HadoopProperty>
      extended by de.hpi.fgis.voidgen.hadoop.HadoopProperty
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HadoopProperty>

public enum HadoopProperty
extends java.lang.Enum<HadoopProperty>

Collects names of Hadoop constants.

Author:
Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany

Enum Constant Summary
JAVA_OPTS
          The java options.
MAP_TASKS
          The number of used map tasks.
MIN_SPLIT_SIZE
          The minimum split size.
REDUCE_TASKS
          The number of used reduce tasks.
 
Method Summary
 java.lang.String toString()
           
static HadoopProperty valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HadoopProperty[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAP_TASKS

public static final HadoopProperty MAP_TASKS
The number of used map tasks.


REDUCE_TASKS

public static final HadoopProperty REDUCE_TASKS
The number of used reduce tasks. If within a job the property with this name is set to '0' a map-only job is created.


JAVA_OPTS

public static final HadoopProperty JAVA_OPTS
The java options. (like -Xmx512M for more heap space)


MIN_SPLIT_SIZE

public static final HadoopProperty MIN_SPLIT_SIZE
The minimum split size.

Method Detail

values

public static HadoopProperty[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HadoopProperty c : HadoopProperty.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HadoopProperty valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<HadoopProperty>