Enum SSTableReader.OpenReason
- java.lang.Object
-
- java.lang.Enum<SSTableReader.OpenReason>
-
- org.apache.cassandra.io.sstable.format.SSTableReader.OpenReason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SSTableReader.OpenReason>
- Enclosing class:
- SSTableReader
public static enum SSTableReader.OpenReason extends java.lang.Enum<SSTableReader.OpenReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EARLY
FromNone
- Reader is a compaction replacement that is either incomplete and has been opened to represent its partial result status, or has been finished but the compaction it is a part of has not yet completed fully FromEARLY
- Same as fromNone
, only it is not the first time it has beenMETADATA_CHANGE
From: FromNORMAL
- Reader has seen low traffic and the amount of memory available for index summaries is constrained, so its index summary has been downsampled FromMETADATA_CHANGE
- SameMOVED_START
FromNORMAL
- Reader is being compacted.NORMAL
FromNone
- Reader has been read from disk, either at startup or from a flushed memtable FromEARLY
- Reader is the final result of a compaction FromMOVED_START
- Reader WAS being compacted, but this failed and it has been restored to {code NORMAL}status
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SSTableReader.OpenReason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SSTableReader.OpenReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final SSTableReader.OpenReason NORMAL
- From
None
- Reader has been read from disk, either at startup or from a flushed memtable - From
EARLY
- Reader is the final result of a compaction - From
MOVED_START
- Reader WAS being compacted, but this failed and it has been restored to {code NORMAL}status
- From
-
EARLY
public static final SSTableReader.OpenReason EARLY
- From
None
- Reader is a compaction replacement that is either incomplete and has been opened to represent its partial result status, or has been finished but the compaction it is a part of has not yet completed fully - From
EARLY
- Same as fromNone
, only it is not the first time it has been
- From
-
METADATA_CHANGE
public static final SSTableReader.OpenReason METADATA_CHANGE
From:- From
NORMAL
- Reader has seen low traffic and the amount of memory available for index summaries is constrained, so its index summary has been downsampled - From
METADATA_CHANGE
- Same
- From
-
MOVED_START
public static final SSTableReader.OpenReason MOVED_START
- From
NORMAL
- Reader is being compacted. This compaction has not finished, but the compaction result is either partially or fully opened, to either partially or fully replace this reader. This reader's start key has been updated to represent this, so that reads only hit one or the other reader.
- From
-
-
Method Detail
-
values
public static SSTableReader.OpenReason[] 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 (SSTableReader.OpenReason c : SSTableReader.OpenReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SSTableReader.OpenReason valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-