Enum CacheType
- java.lang.Object
-
- java.lang.Enum<CacheType>
-
- org.apache.jackrabbit.oak.plugins.document.persistentCache.CacheType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHILDRENDIFFDOCUMENTLOCAL_DIFFNODEPREV_DOCUMENT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <K> intcompareKeys(K a, K b)java.lang.StringgetMapName()abstract <K> KreadKey(java.nio.ByteBuffer buffer)abstract <V> VreadValue(DocumentNodeStore store, DocumentStore docStore, java.nio.ByteBuffer buffer)abstract <K> booleanshouldCache(DocumentNodeStore store, K key)static CacheTypevalueOf(java.lang.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> voidwriteKey(org.h2.mvstore.WriteBuffer buffer, K key)abstract <V> voidwriteValue(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(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
-
getMapName
public java.lang.String getMapName()
-
writeKey
public abstract <K> void writeKey(org.h2.mvstore.WriteBuffer buffer, K key)
-
readKey
public abstract <K> K readKey(java.nio.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, java.nio.ByteBuffer buffer)
-
shouldCache
public abstract <K> boolean shouldCache(DocumentNodeStore store, K key)
-
-