org.apache.accumulo.server.master.state
Enum MergeState

java.lang.Object
  extended by java.lang.Enum<MergeState>
      extended by org.apache.accumulo.server.master.state.MergeState
All Implemented Interfaces:
Serializable, Comparable<MergeState>

public enum MergeState
extends Enum<MergeState>


Enum Constant Summary
COMPLETE
          merge is complete, the resulting tablet can be brought online, remove the marker in zookeeper
MERGING
          when the number of chopped, offline tablets equals the number of merge tablets, begin the metadata updates
NONE
          Not merging
SPLITTING
          put all matching tablets online, split tablets if we are deleting
STARTED
          created, stored in zookeeper, other merges are prevented on the table
WAITING_FOR_CHOPPED
          after the tablet server chops the file, it marks the metadata table with a chopped marker
WAITING_FOR_OFFLINE
          when the number of chopped tablets in the range matches the number of online tablets in the range, take the tablets offline
 
Method Summary
static MergeState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MergeState[] 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

NONE

public static final MergeState NONE
Not merging


STARTED

public static final MergeState STARTED
created, stored in zookeeper, other merges are prevented on the table


SPLITTING

public static final MergeState SPLITTING
put all matching tablets online, split tablets if we are deleting


WAITING_FOR_CHOPPED

public static final MergeState WAITING_FOR_CHOPPED
after the tablet server chops the file, it marks the metadata table with a chopped marker


WAITING_FOR_OFFLINE

public static final MergeState WAITING_FOR_OFFLINE
when the number of chopped tablets in the range matches the number of online tablets in the range, take the tablets offline


MERGING

public static final MergeState MERGING
when the number of chopped, offline tablets equals the number of merge tablets, begin the metadata updates


COMPLETE

public static final MergeState COMPLETE
merge is complete, the resulting tablet can be brought online, remove the marker in zookeeper

Method Detail

values

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

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

valueOf

public static MergeState 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 © 2013 Apache Accumulo Project. All Rights Reserved.