de.hpi.fgis.voidgen.hadoop.tasks.joining
Enum Counter

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

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

An enum for collecting statistics.

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

Enum Constant Summary
CONTAINERS
          The number of quadruples that are only containers for subject or object clusters.
FAILED_QUADRUPLE_PARSING
          The number of input lines which could not be parsed to an RDFQuadruple.
MULTIPLE_CLUSTERS_PER_RESOURCE
          Counts the number of quadruples without subject, predicate, object or context, appearing more than once per key (subject or object).
QUADS
          The number of quadruples that are not only containers for subject or object clusters.
QUADS_WITHOUT_CLUSTER
          The number of quadruples without getting a cluster assigned.
 
Method Summary
static Counter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Counter[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MULTIPLE_CLUSTERS_PER_RESOURCE

public static final Counter MULTIPLE_CLUSTERS_PER_RESOURCE
Counts the number of quadruples without subject, predicate, object or context, appearing more than once per key (subject or object).


QUADS_WITHOUT_CLUSTER

public static final Counter QUADS_WITHOUT_CLUSTER
The number of quadruples without getting a cluster assigned.


FAILED_QUADRUPLE_PARSING

public static final Counter FAILED_QUADRUPLE_PARSING
The number of input lines which could not be parsed to an RDFQuadruple.


CONTAINERS

public static final Counter CONTAINERS
The number of quadruples that are only containers for subject or object clusters.


QUADS

public static final Counter QUADS
The number of quadruples that are not only containers for subject or object clusters.

Method Detail

values

public static Counter[] 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 (Counter c : Counter.values())
    System.out.println(c);

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

valueOf

public static Counter 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