Package org.rostore.v2.media.block
Enum Class BlockType
- All Implemented Interfaces:
Serializable,Comparable<BlockType>,Constable
A type of the block. It is needed to decide on the priority of the block,
but also is used to validate internal logic.
This data is not persisted, and rather is available based on the run-time logic after the block is allocated.
DATA blocks are not cached after they are freed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlock belongs to the block catalog and used for block accounting (e.g.This is the value data block, allocated byDataWriterorDataReader.Block belongs to the key catalog and used for block accounting (e.g. -
Method Summary
-
Enum Constant Details
-
CATALOG
Block belongs to the block catalog and used for block accounting (e.g.CatalogBlockOperations). -
KEY
Block belongs to the key catalog and used for block accounting (e.g.KeyBlockOperations). -
DATA
This is the value data block, allocated byDataWriterorDataReader.
-
-
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
-