Enum Class PersistenceType

java.lang.Object
java.lang.Enum<PersistenceType>
com.linkedin.venice.meta.PersistenceType
All Implemented Interfaces:
Serializable, Comparable<PersistenceType>, Constable

public enum PersistenceType extends Enum<PersistenceType>
Enums of persistence types in Venice.
  • Enum Constant Details

    • IN_MEMORY

      public static final PersistenceType IN_MEMORY
      Volatile storage engine based on a simple Java ConcurrentHashMap.
    • 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)
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PersistenceType[] 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 PersistenceType 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
    • getPersistenceTypeFromInt

      public static PersistenceType getPersistenceTypeFromInt(int i)