Enum Class DataStorageFormat
- All Implemented Interfaces:
Serializable, Comparable<DataStorageFormat>, Constable
Supported database storage format
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNew format.Original format.The option for storing archive data e.g. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the storage format is one of the Bonsai DB formatsstatic DataStorageFormatReturns the enum constant of this class with the specified name.static DataStorageFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOREST
Original format. Store all tries -
BONSAI
New format. Store one trie, and trie logs to roll forward and backward -
X_BONSAI_ARCHIVE
The option for storing archive data e.g. state at any block
-
-
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
-
isBonsaiFormat
public boolean isBonsaiFormat()Returns whether the storage format is one of the Bonsai DB formats- Returns:
- true if it is, otherwise false
-