org.apache.hadoop.hbase.regionserver
Enum HLogEdit.TransactionalOperation

java.lang.Object
  extended by java.lang.Enum<HLogEdit.TransactionalOperation>
      extended by org.apache.hadoop.hbase.regionserver.HLogEdit.TransactionalOperation
All Implemented Interfaces:
Serializable, Comparable<HLogEdit.TransactionalOperation>
Enclosing class:
HLogEdit

public static enum HLogEdit.TransactionalOperation
extends Enum<HLogEdit.TransactionalOperation>

If transactional log entry, these are the op codes


Enum Constant Summary
ABORT
          Abort transaction entry
COMMIT
          Transaction commit entry
START
          start transaction
WRITE
          Equivalent to append in non-transactional environment
 
Method Summary
static HLogEdit.TransactionalOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HLogEdit.TransactionalOperation[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START

public static final HLogEdit.TransactionalOperation START
start transaction


WRITE

public static final HLogEdit.TransactionalOperation WRITE
Equivalent to append in non-transactional environment


COMMIT

public static final HLogEdit.TransactionalOperation COMMIT
Transaction commit entry


ABORT

public static final HLogEdit.TransactionalOperation ABORT
Abort transaction entry

Method Detail

values

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

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

valueOf

public static HLogEdit.TransactionalOperation 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


Copyright © 2008 The Apache Software Foundation