K - the type to be serializedpublic static final class BufferManager.DelegatingKeySerializer<K extends Comparable<K>> extends org.mapdb.BTreeKeySerializer<K> implements Serializable, BufferManager.KeySerializerWithComparator<K>
org.mapdb.BTreeKeySerializer.BasicKeySerializer, org.mapdb.BTreeKeySerializer.Tuple2KeySerializer<A,B>, org.mapdb.BTreeKeySerializer.Tuple3KeySerializer<A,B,C>, org.mapdb.BTreeKeySerializer.Tuple4KeySerializer<A,B,C,D>, org.mapdb.BTreeKeySerializer.Tuple5KeySerializer<A,B,C,D,E>, org.mapdb.BTreeKeySerializer.Tuple6KeySerializer<A,B,C,D,E,F>| Modifier and Type | Field and Description |
|---|---|
protected Comparator<K> |
comparator |
protected org.mapdb.Serializer<K> |
defaultSerializer |
| Modifier | Constructor and Description |
|---|---|
protected |
BufferManager.DelegatingKeySerializer(org.mapdb.Serializer<K> defaultSerializer) |
protected |
BufferManager.DelegatingKeySerializer(org.mapdb.Serializer<K> defaultSerializer,
Comparator<K> comparator) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
deserialize(DataInput in,
int start,
int end,
int size) |
Comparator<K> |
getComparator() |
void |
serialize(DataOutput out,
int start,
int end,
Object[] keys) |
String |
toString() |
org.mapdb.BTreeKeySerializer<K> |
withComparator(Comparator<?> comparator) |
protected final transient org.mapdb.Serializer<K extends Comparable<K>> defaultSerializer
protected final transient Comparator<K extends Comparable<K>> comparator
protected BufferManager.DelegatingKeySerializer(org.mapdb.Serializer<K> defaultSerializer)
protected BufferManager.DelegatingKeySerializer(org.mapdb.Serializer<K> defaultSerializer, Comparator<K> comparator)
public Comparator<K> getComparator()
getComparator in class org.mapdb.BTreeKeySerializer<K extends Comparable<K>>public org.mapdb.BTreeKeySerializer<K> withComparator(Comparator<?> comparator)
withComparator in interface BufferManager.KeySerializerWithComparator<K extends Comparable<K>>public void serialize(DataOutput out, int start, int end, Object[] keys) throws IOException
serialize in class org.mapdb.BTreeKeySerializer<K extends Comparable<K>>IOExceptionpublic Object[] deserialize(DataInput in, int start, int end, int size) throws IOException
deserialize in class org.mapdb.BTreeKeySerializer<K extends Comparable<K>>IOExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.