public class MapSerializer<K,V> extends CollectionSerializer<java.util.Map<K,V>>
| Modifier and Type | Field and Description | 
|---|---|
| TypeSerializer<K> | keys | 
| TypeSerializer<V> | values | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Map<K,V> | deserializeForNativeProtocol(java.nio.ByteBuffer bytes,
                            ProtocolVersion version) | 
| int | getElementCount(java.util.Map<K,V> value) | 
| static <K,V> MapSerializer<K,V> | getInstance(TypeSerializer<K> keys,
           TypeSerializer<V> values,
           java.util.Comparator<java.nio.ByteBuffer> comparator) | 
| java.nio.ByteBuffer | getSerializedValue(java.nio.ByteBuffer serializedMap,
                  java.nio.ByteBuffer serializedKey,
                  AbstractType keyType)Given a serialized map, gets the value associated with a given key. | 
| java.lang.Class<java.util.Map<K,V>> | getType() | 
| java.util.List<java.nio.ByteBuffer> | serializeValues(java.util.Map<K,V> map) | 
| java.lang.String | toString(java.util.Map<K,V> value) | 
| void | validateForNativeProtocol(java.nio.ByteBuffer bytes,
                         ProtocolVersion version) | 
deserialize, pack, readCollectionSize, readValue, serialize, sizeOfCollectionSize, sizeOfValue, validate, writeCollectionSize, writeValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoCQLLiteralpublic final TypeSerializer<K> keys
public final TypeSerializer<V> values
public static <K,V> MapSerializer<K,V> getInstance(TypeSerializer<K> keys, TypeSerializer<V> values, java.util.Comparator<java.nio.ByteBuffer> comparator)
public java.util.List<java.nio.ByteBuffer> serializeValues(java.util.Map<K,V> map)
serializeValues in class CollectionSerializer<java.util.Map<K,V>>public int getElementCount(java.util.Map<K,V> value)
getElementCount in class CollectionSerializer<java.util.Map<K,V>>public void validateForNativeProtocol(java.nio.ByteBuffer bytes,
                                      ProtocolVersion version)
validateForNativeProtocol in class CollectionSerializer<java.util.Map<K,V>>public java.util.Map<K,V> deserializeForNativeProtocol(java.nio.ByteBuffer bytes, ProtocolVersion version)
deserializeForNativeProtocol in class CollectionSerializer<java.util.Map<K,V>>public java.nio.ByteBuffer getSerializedValue(java.nio.ByteBuffer serializedMap,
                                              java.nio.ByteBuffer serializedKey,
                                              AbstractType keyType)
serializedMap - a serialized mapserializedKey - a serialized keykeyType - the key type for the mapCopyright © 2018 The Apache Software Foundation