T - The type to which data extraction should work.public interface Serializer<T>
StringSerializer.| Modifier and Type | Method and Description |
|---|---|
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> list) |
ComparatorType |
getComparatorType() |
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) |
ByteBuffer toByteBuffer(T obj)
obj - byte[] toBytes(T obj)
T fromBytes(byte[] bytes)
T fromByteBuffer(ByteBuffer byteBuffer)
bytes - Set<ByteBuffer> toBytesSet(List<T> list)
List<T> fromBytesSet(Set<ByteBuffer> list)
<V> Map<ByteBuffer,V> toBytesMap(Map<T,V> map)
<V> Map<T,V> fromBytesMap(Map<ByteBuffer,V> map)
List<ByteBuffer> toBytesList(List<T> list)
List<T> fromBytesList(List<ByteBuffer> list)
ComparatorType getComparatorType()
Copyright © 2014. All Rights Reserved.