Package io.kcache.mapdb
Class CustomSerializerByteArray<K>
- java.lang.Object
-
- org.mapdb.serializer.SerializerByteArray
-
- io.kcache.mapdb.CustomSerializerByteArray<K>
-
- All Implemented Interfaces:
Comparator<byte[]>,org.mapdb.Serializer<byte[]>,org.mapdb.serializer.GroupSerializer<byte[]>
public class CustomSerializerByteArray<K> extends org.mapdb.serializer.SerializerByteArray
-
-
Field Summary
-
Fields inherited from interface org.mapdb.Serializer
BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BYTE, BYTE_ARRAY, BYTE_ARRAY_DELTA, BYTE_ARRAY_DELTA2, BYTE_ARRAY_NOSIZE, CHAR, CHAR_ARRAY, CLASS, DATE, DOUBLE, DOUBLE_ARRAY, ELSA, FLOAT, FLOAT_ARRAY, ILLEGAL_ACCESS, INT_ARRAY, INTEGER, INTEGER_DELTA, INTEGER_PACKED, JAVA, LONG, LONG_ARRAY, LONG_DELTA, LONG_PACKED, RECID, RECID_ARRAY, SHORT, SHORT_ARRAY, STRING, STRING_ASCII, STRING_DELTA, STRING_DELTA2, STRING_INTERN, STRING_NOSIZE, STRING_ORIGHASH, UUID
-
-
Constructor Summary
Constructors Constructor Description CustomSerializerByteArray(org.apache.kafka.common.serialization.Serde<K> keySerde, Comparator<? super K> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(byte[] b1, byte[] b2)-
Methods inherited from class org.mapdb.serializer.SerializerByteArray
deserialize, equals, hashCode, isTrusted, nextValue, serialize, valueArrayCopyOfRange, valueArrayDeleteValue, valueArrayDeserialize, valueArrayEmpty, valueArrayFromArray, valueArrayGet, valueArrayPut, valueArraySearch, valueArraySearch, valueArraySerialize, valueArraySize, valueArrayUpdateVal
-
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
-
CustomSerializerByteArray
public CustomSerializerByteArray(org.apache.kafka.common.serialization.Serde<K> keySerde, Comparator<? super K> comparator)
-
-
Method Detail
-
compare
public int compare(byte[] b1, byte[] b2)- Specified by:
comparein interfaceComparator<K>- Specified by:
comparein interfaceorg.mapdb.Serializer<K>- Overrides:
comparein classorg.mapdb.serializer.SerializerByteArray
-
-