Enum CacheType
- java.lang.Object
-
- java.lang.Enum<CacheType>
-
- org.apache.jackrabbit.oak.plugins.document.persistentCache.CacheType
-
- All Implemented Interfaces:
Serializable
,Comparable<CacheType>
public enum CacheType extends Enum<CacheType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHILDREN
DIFF
DOCUMENT
LOCAL_DIFF
NODE
PREV_DOCUMENT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <K> int
compareKeys(K a, K b)
String
getMapName()
abstract <K> K
readKey(ByteBuffer buffer)
abstract <V> V
readValue(DocumentNodeStore store, DocumentStore docStore, ByteBuffer buffer)
abstract <K> boolean
shouldCache(DocumentNodeStore store, K key)
static CacheType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.abstract <K> void
writeKey(org.h2.mvstore.WriteBuffer buffer, K key)
abstract <V> void
writeValue(org.h2.mvstore.WriteBuffer buffer, V value)
-
-
-
Enum Constant Detail
-
NODE
public static final CacheType NODE
-
CHILDREN
public static final CacheType CHILDREN
-
DIFF
public static final CacheType DIFF
-
DOCUMENT
public static final CacheType DOCUMENT
-
PREV_DOCUMENT
public static final CacheType PREV_DOCUMENT
-
LOCAL_DIFF
public static final CacheType LOCAL_DIFF
-
-
Field Detail
-
VALUES
public static final CacheType[] VALUES
-
-
Method Detail
-
values
public static CacheType[] 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 (CacheType c : CacheType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMapName
public String getMapName()
-
writeKey
public abstract <K> void writeKey(org.h2.mvstore.WriteBuffer buffer, K key)
-
readKey
public abstract <K> K readKey(ByteBuffer buffer)
-
compareKeys
public abstract <K> int compareKeys(K a, K b)
-
writeValue
public abstract <V> void writeValue(org.h2.mvstore.WriteBuffer buffer, V value)
-
readValue
public abstract <V> V readValue(DocumentNodeStore store, DocumentStore docStore, ByteBuffer buffer)
-
shouldCache
public abstract <K> boolean shouldCache(DocumentNodeStore store, K key)
-
-