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

public static enum SSTableReader.OpenReason extends Enum<SSTableReader.OpenReason>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    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 from None, only it is not the first time it has been
    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 NORMAL - Reader is being compacted.
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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
    • 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 from None, only it is not the first time it has been
    • 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
    • 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.
  • Method Details

    • values

      public static SSTableReader.OpenReason[] 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

      public static SSTableReader.OpenReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null