Enum SegmentGCOptions.CompactorType
- java.lang.Object
-
- java.lang.Enum<SegmentGCOptions.CompactorType>
-
- org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType
-
- All Implemented Interfaces:
Serializable
,Comparable<SegmentGCOptions.CompactorType>
- Enclosing class:
- SegmentGCOptions
public static enum SegmentGCOptions.CompactorType extends Enum<SegmentGCOptions.CompactorType>
The compactor type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKPOINT_COMPACTOR
Checkpoint-aware compaction implementationCLASSIC_COMPACTOR
Simple compactor implementationPARALLEL_COMPACTOR
Multithreaded compaction implementation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
static SegmentGCOptions.CompactorType
fromDescription(String description)
static SegmentGCOptions.CompactorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SegmentGCOptions.CompactorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASSIC_COMPACTOR
public static final SegmentGCOptions.CompactorType CLASSIC_COMPACTOR
Simple compactor implementation
-
CHECKPOINT_COMPACTOR
public static final SegmentGCOptions.CompactorType CHECKPOINT_COMPACTOR
Checkpoint-aware compaction implementation
-
PARALLEL_COMPACTOR
public static final SegmentGCOptions.CompactorType PARALLEL_COMPACTOR
Multithreaded compaction implementation
-
-
Method Detail
-
values
public static SegmentGCOptions.CompactorType[] 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 (SegmentGCOptions.CompactorType c : SegmentGCOptions.CompactorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentGCOptions.CompactorType 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
-
fromDescription
public static SegmentGCOptions.CompactorType fromDescription(String description)
-
description
public String description()
-
-