Enum SSTableReader.OpenReason

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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
      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
      From NORMAL - Reader is being compacted.
      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
    • 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.
      • 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

      • 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 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 name
        java.lang.NullPointerException - if the argument is null