K
- the type to be serializedpublic static final class MapDB.DelegatingKeySerializer<K extends Comparable<K>> extends org.mapdb.BTreeKeySerializer<K> implements Serializable, MapDB.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 |
Constructor and Description |
---|
DelegatingKeySerializer(org.mapdb.Serializer<K> defaultSerializer) |
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) |
boolean |
equals(Object obj) |
Comparator<K> |
getComparator() |
int |
hashCode() |
void |
serialize(DataOutput out,
int start,
int end,
Object[] keys) |
String |
toString() |
org.mapdb.BTreeKeySerializer<K> |
withComparator(Comparator<?> comparator) |
protected final org.mapdb.Serializer<K extends Comparable<K>> defaultSerializer
protected final Comparator<K extends Comparable<K>> comparator
public DelegatingKeySerializer(org.mapdb.Serializer<K> defaultSerializer)
public 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 MapDB.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>>
IOException
public Object[] deserialize(DataInput in, int start, int end, int size) throws IOException
deserialize
in class org.mapdb.BTreeKeySerializer<K extends Comparable<K>>
IOException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.