org.apache.hadoop.hbase.regionserver
Enum HRegion.Operation
java.lang.Object
java.lang.Enum<HRegion.Operation>
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
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
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.