Package alluxio.client.file.cache
Enum ShadowCacheType
- java.lang.Object
-
- java.lang.Enum<ShadowCacheType>
-
- alluxio.client.file.cache.ShadowCacheType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShadowCacheType>
public enum ShadowCacheType extends java.lang.Enum<ShadowCacheType>
This represents the different shadow cache implementations that can be instantiated.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOCK_CUCKOO_FILTER
A shadow cache with clock cuckoo filter implementation.MULTIPLE_BLOOM_FILTER
A shadow cache with multiple bloom filter implementation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShadowCacheType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShadowCacheType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MULTIPLE_BLOOM_FILTER
public static final ShadowCacheType MULTIPLE_BLOOM_FILTER
A shadow cache with multiple bloom filter implementation. It creates a chain of bloom filters that support updating operation which updates one of them during each sub-window, and switch operation which switch to the least recently used BF and clear it on switching sub-window.
-
CLOCK_CUCKOO_FILTER
public static final ShadowCacheType CLOCK_CUCKOO_FILTER
A shadow cache with clock cuckoo filter implementation. It creates a cuckoo filter with extended field (clock, size, etc.). Thanks to the deletable feature of cuckoo filter, it can adapt to dynamic workload more smoothly. Clock cuckoo filter will `aging` all entries periodically. Specifically, it scans all stored entries, decreases their clock value, and deletes the stale ones whose clock value are reduced to zero. This process is similar to the well-known CLOCK algorithm, which is why we name it clock cuckoo filter.
-
-
Method Detail
-
values
public static ShadowCacheType[] 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 (ShadowCacheType c : ShadowCacheType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShadowCacheType 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
-
-