org.hbase.async
Enum MapRTableMappingRules.ClusterType

java.lang.Object
  extended by java.lang.Enum<MapRTableMappingRules.ClusterType>
      extended by org.hbase.async.MapRTableMappingRules.ClusterType
All Implemented Interfaces:
Serializable, Comparable<MapRTableMappingRules.ClusterType>
Enclosing class:
MapRTableMappingRules

public static enum MapRTableMappingRules.ClusterType
extends Enum<MapRTableMappingRules.ClusterType>

Describe the type of cluster based on the running services.


Enum Constant Summary
HBASE_MAPR
          The cluster runs both type of DB services.
HBASE_ONLY
          The cluster runs only HBase service (pre 3.0)
MAPR_ONLY
          HBase is not installed in the cluster.
 
Method Summary
static MapRTableMappingRules.ClusterType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MapRTableMappingRules.ClusterType[] 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

HBASE_ONLY

public static final MapRTableMappingRules.ClusterType HBASE_ONLY
The cluster runs only HBase service (pre 3.0)


MAPR_ONLY

public static final MapRTableMappingRules.ClusterType MAPR_ONLY
HBase is not installed in the cluster.


HBASE_MAPR

public static final MapRTableMappingRules.ClusterType HBASE_MAPR
The cluster runs both type of DB services.

Method Detail

values

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

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

valueOf

public static MapRTableMappingRules.ClusterType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2015, The Async HBase Authors