public enum PrepopulateBlobCache extends java.lang.Enum<PrepopulateBlobCache>
Prepopulate warm/hot blobs which are already in memory into blob cache at the time of flush. On a flush, the blob that is in memory (in memtables) get flushed to the device. If using Direct IO, additional IO is incurred to read this blob back into memory again, which is avoided by enabling this option. This further helps if the workload exhibits high temporal locality, where most of the reads go to recently written data. This also helps in case of the remote file system since it involves network traffic and higher latencies.
| 枚举常量和说明 |
|---|
PREPOPULATE_BLOB_DISABLE |
PREPOPULATE_BLOB_FLUSH_ONLY |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getLibraryName()
Returns the library name of the prepopulate blob cache mode
identified by the enumeration value.
|
static PrepopulateBlobCache |
getPrepopulateBlobCache(byte byteIdentifier)
Get the PrepopulateBlobCache enumeration value by
passing the byte identifier to this method.
|
static PrepopulateBlobCache |
getPrepopulateBlobCache(java.lang.String libraryName)
Get the PrepopulateBlobCache enumeration value by
passing the library name to this method.
|
byte |
getValue()
Returns the byte value of the enumerations value.
|
static PrepopulateBlobCache |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PrepopulateBlobCache[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PrepopulateBlobCache PREPOPULATE_BLOB_DISABLE
public static final PrepopulateBlobCache PREPOPULATE_BLOB_FLUSH_ONLY
public static PrepopulateBlobCache[] values()
for (PrepopulateBlobCache c : PrepopulateBlobCache.values()) System.out.println(c);
public static PrepopulateBlobCache valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static PrepopulateBlobCache getPrepopulateBlobCache(java.lang.String libraryName)
Get the PrepopulateBlobCache enumeration value by passing the library name to this method.
If library cannot be found the enumeration
value PREPOPULATE_BLOB_DISABLE will be returned.
libraryName - prepopulate blob cache library name.public static PrepopulateBlobCache getPrepopulateBlobCache(byte byteIdentifier)
Get the PrepopulateBlobCache enumeration value by passing the byte identifier to this method.
byteIdentifier - of PrepopulateBlobCache.java.lang.IllegalArgumentException - If PrepopulateBlobCache cannot be found for the
provided byteIdentifierpublic byte getValue()
Returns the byte value of the enumerations value.
public java.lang.String getLibraryName()
Returns the library name of the prepopulate blob cache mode identified by the enumeration value.