Package com.linkedin.venice.meta
Enum Class PersistenceType
- All Implemented Interfaces:
Serializable
,Comparable<PersistenceType>
,Constable
Enums of persistence types in Venice.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPersistent storage engine that writes to durable media and maintains a B+ tree in the Java heap.Fastest lock-free most secure of all storage engines.Similar to IN_MEMORY but with different retention rules of data (that is, data is evicted under certain circumstances)Volatile storage engine based on a simple JavaConcurrentHashMap
.Persistent storage engine that writes to durable media and maintains an off-heap in-memory index. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistenceType
getPersistenceTypeFromInt
(int i) static PersistenceType
Returns the enum constant of this class with the specified name.static PersistenceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN_MEMORY
Volatile storage engine based on a simple JavaConcurrentHashMap
. -
BDB
Persistent storage engine that writes to durable media and maintains a B+ tree in the Java heap. -
ROCKS_DB
Persistent storage engine that writes to durable media and maintains an off-heap in-memory index. -
BLACK_HOLE
Fastest lock-free most secure of all storage engines. Ignores data put in it, always returns null. -
CACHE
Similar to IN_MEMORY but with different retention rules of data (that is, data is evicted under certain circumstances)
-
-
Field Details
-
value
public final int value
-
-
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
-
getPersistenceTypeFromInt
-