Package com.linkedin.venice.meta
Enum PersistenceType
- java.lang.Object
-
- java.lang.Enum<PersistenceType>
-
- com.linkedin.venice.meta.PersistenceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PersistenceType>
public enum PersistenceType extends java.lang.Enum<PersistenceType>
Enums of persistence types in Venice.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BDB
Persistent storage engine that writes to durable media and maintains a B+ tree in the Java heap.BLACK_HOLE
Fastest lock-free most secure of all storage engines.CACHE
Similar to IN_MEMORY but with different retention rules of data (that is, data is evicted under certain circumstances)IN_MEMORY
Volatile storage engine based on a simple JavaConcurrentHashMap
.ROCKS_DB
Persistent storage engine that writes to durable media and maintains an off-heap in-memory index.
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PersistenceType
getPersistenceTypeFromInt(int i)
static PersistenceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PersistenceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_MEMORY
public static final PersistenceType IN_MEMORY
Volatile storage engine based on a simple JavaConcurrentHashMap
.
-
BDB
public static final PersistenceType BDB
Persistent storage engine that writes to durable media and maintains a B+ tree in the Java heap.
-
ROCKS_DB
public static final PersistenceType ROCKS_DB
Persistent storage engine that writes to durable media and maintains an off-heap in-memory index.
-
BLACK_HOLE
public static final PersistenceType BLACK_HOLE
Fastest lock-free most secure of all storage engines. Ignores data put in it, always returns null.
-
CACHE
public static final PersistenceType CACHE
Similar to IN_MEMORY but with different retention rules of data (that is, data is evicted under certain circumstances)
-
-
Method Detail
-
values
public static PersistenceType[] 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 (PersistenceType c : PersistenceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersistenceType 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 namejava.lang.NullPointerException
- if the argument is null
-
getPersistenceTypeFromInt
public static PersistenceType getPersistenceTypeFromInt(int i)
-
-