T - public abstract class AbstractSerializer<T> extends Object implements Serializer<T>
| Constructor and Description |
|---|
AbstractSerializer() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeInitialHashSize(int initialSize) |
abstract T |
fromByteBuffer(ByteBuffer byteBuffer)
Extract an object of type T from the bytes.
|
T |
fromBytes(byte[] bytes) |
List<T> |
fromBytesList(List<ByteBuffer> list) |
<V> Map<T,V> |
fromBytesMap(Map<ByteBuffer,V> map) |
List<T> |
fromBytesSet(Set<ByteBuffer> set) |
ComparatorType |
getComparatorType() |
abstract ByteBuffer |
toByteBuffer(T obj)
Extract bytes from the obj of type T
|
byte[] |
toBytes(T obj) |
List<ByteBuffer> |
toBytesList(List<T> list) |
<V> Map<ByteBuffer,V> |
toBytesMap(Map<T,V> map) |
Set<ByteBuffer> |
toBytesSet(List<T> list) |
public abstract ByteBuffer toByteBuffer(T obj)
SerializertoByteBuffer in interface Serializer<T>public byte[] toBytes(T obj)
toBytes in interface Serializer<T>public T fromBytes(byte[] bytes)
fromBytes in interface Serializer<T>public abstract T fromByteBuffer(ByteBuffer byteBuffer)
SerializerfromByteBuffer in interface Serializer<T>public Set<ByteBuffer> toBytesSet(List<T> list)
toBytesSet in interface Serializer<T>public List<T> fromBytesSet(Set<ByteBuffer> set)
fromBytesSet in interface Serializer<T>public List<ByteBuffer> toBytesList(List<T> list)
toBytesList in interface Serializer<T>public List<T> fromBytesList(List<ByteBuffer> list)
fromBytesList in interface Serializer<T>public <V> Map<ByteBuffer,V> toBytesMap(Map<T,V> map)
toBytesMap in interface Serializer<T>public <V> Map<T,V> fromBytesMap(Map<ByteBuffer,V> map)
fromBytesMap in interface Serializer<T>public int computeInitialHashSize(int initialSize)
public ComparatorType getComparatorType()
getComparatorType in interface Serializer<T>Copyright © 2014. All Rights Reserved.