Package com.linkedin.davinci.client
Enum StorageClass
- java.lang.Object
-
- java.lang.Enum<StorageClass>
-
- com.linkedin.davinci.client.StorageClass
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StorageClass>
public enum StorageClass extends java.lang.Enum<StorageClass>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISK
The mode has the following implications: 1.MEMORY_BACKED_BY_DISK
The mode has the following implications: 1.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StorageClass
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StorageClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISK
public static final StorageClass DISK
The mode has the following implications: 1. Keep all the data on disk. 2. Use a block cache to keep the hottest entries and internally it is using LRU algorithm. Internally, Block Cache will try to cache index/bloom filters over data entries if there is a memory pressure. 3. Block cache size is configurable. 4. This mode is recommended for the large store use cases that the application doesn't have enough RAM to keep all the data in memory and the application is using SSD.
-
MEMORY_BACKED_BY_DISK
public static final StorageClass MEMORY_BACKED_BY_DISK
The mode has the following implications: 1. Keep a snapshot on disk. 2. Application can use SSD or Hard Drive. 3. Application needs to have enough RAM to keep DaVinci databases fully in RAM (ideally, it should have enough RAM to keep two versions since Venice/DaVinci database is versioned.) 4. At serving time, all the read request will be served out of memory and internally, RocksDB in DaVinci is using mmap to bring the on-disk data files into RAM.
-
-
Method Detail
-
values
public static StorageClass[] 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 (StorageClass c : StorageClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StorageClass 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
-
-