org.apache.hadoop.hbase.regionserver
Enum HRegion.Operation

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

public static enum HRegion.Operation
extends Enum<HRegion.Operation>

Operation enum is used in HRegion.startRegionOperation() to provide operation context for startRegionOperation to possibly invoke different checks before any region operations. Not all operations have to be defined here. It's only needed when a special check is need in startRegionOperation


Enum Constant Summary
ANY
           
APPEND
           
BATCH_MUTATE
           
COMPACT_REGION
           
DELETE
           
GET
           
INCREMENT
           
MERGE_REGION
           
PUT
           
REPLAY_BATCH_MUTATE
           
SCAN
           
SPLIT_REGION
           
 
Method Summary
static HRegion.Operation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HRegion.Operation[] 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

ANY

public static final HRegion.Operation ANY

GET

public static final HRegion.Operation GET

PUT

public static final HRegion.Operation PUT

DELETE

public static final HRegion.Operation DELETE

SCAN

public static final HRegion.Operation SCAN

APPEND

public static final HRegion.Operation APPEND

INCREMENT

public static final HRegion.Operation INCREMENT

SPLIT_REGION

public static final HRegion.Operation SPLIT_REGION

MERGE_REGION

public static final HRegion.Operation MERGE_REGION

BATCH_MUTATE

public static final HRegion.Operation BATCH_MUTATE

REPLAY_BATCH_MUTATE

public static final HRegion.Operation REPLAY_BATCH_MUTATE

COMPACT_REGION

public static final HRegion.Operation COMPACT_REGION
Method Detail

values

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

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

valueOf

public static HRegion.Operation 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 © 2007-2016 The Apache Software Foundation. All Rights Reserved.