Enum MergeState
- java.lang.Object
-
- java.lang.Enum<MergeState>
-
- org.apache.accumulo.server.master.state.MergeState
-
- All Implemented Interfaces:
Serializable
,Comparable<MergeState>
public enum MergeState extends Enum<MergeState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETE
merge is complete, the resulting tablet can be brought online, remove the marker in zookeeperMERGING
when the number of chopped, offline tablets equals the number of merge tablets, begin the metadata updatesNONE
Not mergingSPLITTING
put all matching tablets online, split tablets if we are deletingSTARTED
created, stored in zookeeper, other merges are prevented on the tableWAITING_FOR_CHOPPED
after the tablet server chops the file, it marks the metadata table with a chopped markerWAITING_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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 nameNullPointerException
- if the argument is null
-
-