Enum Class DataStorageFormat

java.lang.Object
java.lang.Enum<DataStorageFormat>
org.hyperledger.besu.plugin.services.storage.DataStorageFormat
All Implemented Interfaces:
Serializable, Comparable<DataStorageFormat>, Constable

public enum DataStorageFormat extends Enum<DataStorageFormat>
Supported database storage format
  • Enum Constant Details

    • FOREST

      public static final DataStorageFormat FOREST
      Original format. Store all tries
    • BONSAI

      public static final DataStorageFormat BONSAI
      New format. Store one trie, and trie logs to roll forward and backward
    • X_BONSAI_ARCHIVE

      public static final DataStorageFormat X_BONSAI_ARCHIVE
      The option for storing archive data e.g. state at any block
  • Method Details

    • values

      public static DataStorageFormat[] 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 DataStorageFormat 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
    • isBonsaiFormat

      public boolean isBonsaiFormat()
      Returns whether the storage format is one of the Bonsai DB formats
      Returns:
      true if it is, otherwise false