protected static class BTreeMap.NodeSerializer<A,B> extends Object implements Serializer<BTreeMap.BNode>
Serializer.CompressionWrapper<E>
Modifier and Type | Field and Description |
---|---|
protected Comparator |
comparator |
protected boolean |
hasValues |
protected BTreeKeySerializer |
keySerializer |
protected int |
numberOfNodeMetas |
protected boolean |
valsOutsideNodes |
protected Serializer<Object> |
valueSerializer |
BASIC, BOOLEAN, BYTE_ARRAY, BYTE_ARRAY_NOSIZE, CHAR_ARRAY, DOUBLE_ARRAY, ILLEGAL_ACCESS, INT_ARRAY, INTEGER, JAVA, LONG, LONG_ARRAY, STRING, STRING_ASCII, STRING_INTERN, STRING_NOSIZE, UUID
Constructor and Description |
---|
NodeSerializer(boolean valsOutsideNodes,
BTreeKeySerializer keySerializer,
Serializer valueSerializer,
Comparator comparator,
int numberOfNodeMetas) |
Modifier and Type | Method and Description |
---|---|
BTreeMap.BNode |
deserialize(DataInput in,
int available)
Deserialize the content of an object from a DataInput.
|
int |
fixedSize()
Data could be serialized into record with variable size or fixed size.
|
void |
serialize(DataOutput out,
BTreeMap.BNode value)
Serialize the content of an object into a ObjectOutput
|
protected final boolean hasValues
protected final boolean valsOutsideNodes
protected final BTreeKeySerializer keySerializer
protected final Serializer<Object> valueSerializer
protected final Comparator comparator
protected final int numberOfNodeMetas
public NodeSerializer(boolean valsOutsideNodes, BTreeKeySerializer keySerializer, Serializer valueSerializer, Comparator comparator, int numberOfNodeMetas)
public void serialize(DataOutput out, BTreeMap.BNode value) throws IOException
Serializer
serialize
in interface Serializer<BTreeMap.BNode>
out
- ObjectOutput to save object intovalue
- Object to serializeIOException
public BTreeMap.BNode deserialize(DataInput in, int available) throws IOException
Serializer
deserialize
in interface Serializer<BTreeMap.BNode>
in
- to read serialized data fromavailable
- how many bytes are available in DataInput for reading, may be -1 (in streams) or 0 (null).IOException
public int fixedSize()
Serializer
fixedSize
in interface Serializer<BTreeMap.BNode>
Copyright © 2017. All rights reserved.