public class ListType<T> extends CollectionType<java.util.List<T>>
CollectionType.Kind
Modifier and Type | Field and Description |
---|---|
ListSerializer<T> |
serializer |
kind, MAX_ELEMENTS
reverseComparator
Modifier and Type | Method and Description |
---|---|
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
AbstractType<?> |
freeze() |
AbstractType<T> |
getElementsType() |
static <T> ListType<T> |
getInstance(AbstractType<T> elements,
boolean isMultiCell) |
static ListType<?> |
getInstance(TypeParser parser) |
ListSerializer<T> |
getSerializer() |
boolean |
isCompatibleWithFrozen(CollectionType<?> previous)
A version of isCompatibleWith() to deal with non-multicell (frozen) collections
|
boolean |
isMultiCell() |
boolean |
isValueCompatibleWithFrozen(CollectionType<?> previous)
A version of isValueCompatibleWith() to deal with non-multicell (frozen) collections
|
AbstractType<java.util.UUID> |
nameComparator() |
boolean |
references(AbstractType<?> check)
Checks whether this type or any of the types this type contains references the given type.
|
java.util.List<java.nio.ByteBuffer> |
serializedValues(java.util.List<Cell> cells) |
java.lang.String |
toString(boolean ignoreFreezing) |
AbstractType<T> |
valueComparator() |
asCQL3Type, enforceLimit, fromString, getString, isCollection, isCompatibleWith, isMap, isValueCompatibleWithInternal, serializeForNativeProtocol, toString, validateCellValue
compareCollectionMembers, componentsCount, compose, decompose, fromStringCQL2, getComponents, getString, isByteOrderComparable, isCounter, isValueCompatibleWith, parseDefaultParameters, validate, validateCollectionMember
public final ListSerializer<T> serializer
public static ListType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
public static <T> ListType<T> getInstance(AbstractType<T> elements, boolean isMultiCell)
public boolean references(AbstractType<?> check)
AbstractType
references
in class AbstractType<java.util.List<T>>
public AbstractType<T> getElementsType()
public AbstractType<java.util.UUID> nameComparator()
nameComparator
in class CollectionType<java.util.List<T>>
public AbstractType<T> valueComparator()
valueComparator
in class CollectionType<java.util.List<T>>
public ListSerializer<T> getSerializer()
getSerializer
in class CollectionType<java.util.List<T>>
public AbstractType<?> freeze()
freeze
in class AbstractType<java.util.List<T>>
public boolean isMultiCell()
isMultiCell
in class AbstractType<java.util.List<T>>
public boolean isCompatibleWithFrozen(CollectionType<?> previous)
CollectionType
isCompatibleWithFrozen
in class CollectionType<java.util.List<T>>
public boolean isValueCompatibleWithFrozen(CollectionType<?> previous)
CollectionType
isValueCompatibleWithFrozen
in class CollectionType<java.util.List<T>>
public int compare(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
public java.lang.String toString(boolean ignoreFreezing)
toString
in class AbstractType<java.util.List<T>>
ignoreFreezing
- if true, the type string will not be wrapped with FrozenType(...), even if this type is frozen.public java.util.List<java.nio.ByteBuffer> serializedValues(java.util.List<Cell> cells)
serializedValues
in class CollectionType<java.util.List<T>>
Copyright © 2020 The Apache Software Foundation