org.apache.hadoop.hbase.regionserver.transactional
Enum THLogKey.TrxOp

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

public static enum THLogKey.TrxOp
extends Enum<THLogKey.TrxOp>

Type of Transactional op going into the HLot


Enum Constant Summary
ABORT
          A transaction was aborted.
COMMIT
          A transaction was committed.
OP
          A standard operation that is transactional.
START
          Start a transaction.
 
Method Summary
static THLogKey.TrxOp fromByte(byte opCode)
           
static THLogKey.TrxOp valueOf(String name)
          Returns the enum constant of this type with the specified name.
static THLogKey.TrxOp[] 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

START

public static final THLogKey.TrxOp START
Start a transaction.


OP

public static final THLogKey.TrxOp OP
A standard operation that is transactional. KV holds the op.


COMMIT

public static final THLogKey.TrxOp COMMIT
A transaction was committed.


ABORT

public static final THLogKey.TrxOp ABORT
A transaction was aborted.

Method Detail

values

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

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

valueOf

public static THLogKey.TrxOp 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

fromByte

public static THLogKey.TrxOp fromByte(byte opCode)


Copyright © 2009 The Apache Software Foundation