org.apache.accumulo.core.client.admin
Enum ActiveCompaction.CompactionType

java.lang.Object
  extended by java.lang.Enum<ActiveCompaction.CompactionType>
      extended by org.apache.accumulo.core.client.admin.ActiveCompaction.CompactionType
All Implemented Interfaces:
Serializable, Comparable<ActiveCompaction.CompactionType>
Enclosing class:
ActiveCompaction

public static enum ActiveCompaction.CompactionType
extends Enum<ActiveCompaction.CompactionType>


Enum Constant Summary
FULL
          compaction that merges all of a tablets files into one file
MAJOR
          compaction that merges a subset of a tablets files into one file
MERGE
          compaction to flush a tablets memory and merge it with the tablets smallest file.
MINOR
          compaction to flush a tablets memory
 
Method Summary
static ActiveCompaction.CompactionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActiveCompaction.CompactionType[] 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

MINOR

public static final ActiveCompaction.CompactionType MINOR
compaction to flush a tablets memory


MERGE

public static final ActiveCompaction.CompactionType MERGE
compaction to flush a tablets memory and merge it with the tablets smallest file. This type compaction is done when a tablet has too many files


MAJOR

public static final ActiveCompaction.CompactionType MAJOR
compaction that merges a subset of a tablets files into one file


FULL

public static final ActiveCompaction.CompactionType FULL
compaction that merges all of a tablets files into one file

Method Detail

values

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

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

valueOf

public static ActiveCompaction.CompactionType 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 © 2015 Apache Accumulo Project. All rights reserved.