Enum Class SSTableReader.OpenReason
java.lang.Object
java.lang.Enum<SSTableReader.OpenReason>
org.apache.cassandra.io.sstable.format.SSTableReader.OpenReason
- All Implemented Interfaces:
Serializable,Comparable<SSTableReader.OpenReason>,Constable
- Enclosing class:
- SSTableReader
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFromNone- 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 beenFrom: 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- SameFromNORMAL- Reader is being compacted.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
Modifier and TypeMethodDescriptionstatic SSTableReader.OpenReasonReturns the enum constant of this class with the specified name.static SSTableReader.OpenReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
- 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
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
- 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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-