public class ListSerializer<T> extends CollectionSerializer<java.util.List<T>>
| Modifier and Type | Field and Description | 
|---|---|
| TypeSerializer<T> | elements | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.List<T> | deserializeForNativeProtocol(java.nio.ByteBuffer bytes,
                            ProtocolVersion version) | 
| java.nio.ByteBuffer | getElement(java.nio.ByteBuffer serializedList,
          int index)Returns the element at the given index in a list. | 
| int | getElementCount(java.util.List<T> value) | 
| static <T> ListSerializer<T> | getInstance(TypeSerializer<T> elements) | 
| java.lang.Class<java.util.List<T>> | getType() | 
| java.util.List<java.nio.ByteBuffer> | serializeValues(java.util.List<T> values) | 
| java.lang.String | toString(java.util.List<T> 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<T> elements
public static <T> ListSerializer<T> getInstance(TypeSerializer<T> elements)
public java.util.List<java.nio.ByteBuffer> serializeValues(java.util.List<T> values)
serializeValues in class CollectionSerializer<java.util.List<T>>public int getElementCount(java.util.List<T> value)
getElementCount in class CollectionSerializer<java.util.List<T>>public void validateForNativeProtocol(java.nio.ByteBuffer bytes,
                                      ProtocolVersion version)
validateForNativeProtocol in class CollectionSerializer<java.util.List<T>>public java.util.List<T> deserializeForNativeProtocol(java.nio.ByteBuffer bytes, ProtocolVersion version)
deserializeForNativeProtocol in class CollectionSerializer<java.util.List<T>>public java.nio.ByteBuffer getElement(java.nio.ByteBuffer serializedList,
                                      int index)
serializedList - a serialized listindex - the index to getpublic java.lang.String toString(java.util.List<T> value)
public java.lang.Class<java.util.List<T>> getType()
Copyright © 2018 The Apache Software Foundation