Class KeyDataType
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.persistentCache.KeyDataType
-
- All Implemented Interfaces:
Comparator<Object>,org.h2.mvstore.type.DataType<Object>
public class KeyDataType extends Object implements org.h2.mvstore.type.DataType<Object>
-
-
Constructor Summary
Constructors Constructor Description KeyDataType(CacheType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinarySearch(Object key, Object storage, int size, int initialGuess)intcompare(Object a, Object b)Object[]createStorage(int size)intgetMemory(Object obj)booleanisMemoryEstimationAllowed()Objectread(ByteBuffer buff)voidread(ByteBuffer buff, Object storage, int len)voidwrite(org.h2.mvstore.WriteBuffer buff, Object obj)voidwrite(org.h2.mvstore.WriteBuffer buff, Object storage, int len)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
KeyDataType
public KeyDataType(CacheType type)
-
-
Method Detail
-
compare
public int compare(Object a, Object b)
- Specified by:
comparein interfaceComparator<Object>- Specified by:
comparein interfaceorg.h2.mvstore.type.DataType<Object>
-
getMemory
public int getMemory(Object obj)
- Specified by:
getMemoryin interfaceorg.h2.mvstore.type.DataType<Object>
-
write
public void write(org.h2.mvstore.WriteBuffer buff, Object obj)- Specified by:
writein interfaceorg.h2.mvstore.type.DataType<Object>
-
read
public Object read(ByteBuffer buff)
- Specified by:
readin interfaceorg.h2.mvstore.type.DataType<Object>
-
write
public void write(org.h2.mvstore.WriteBuffer buff, Object storage, int len)- Specified by:
writein interfaceorg.h2.mvstore.type.DataType<Object>
-
read
public void read(ByteBuffer buff, Object storage, int len)
- Specified by:
readin interfaceorg.h2.mvstore.type.DataType<Object>
-
binarySearch
public int binarySearch(Object key, Object storage, int size, int initialGuess)
- Specified by:
binarySearchin interfaceorg.h2.mvstore.type.DataType<Object>
-
isMemoryEstimationAllowed
public boolean isMemoryEstimationAllowed()
- Specified by:
isMemoryEstimationAllowedin interfaceorg.h2.mvstore.type.DataType<Object>
-
-