public class ListType<T> extends CollectionType<java.util.List<T>>
CollectionType.KindAbstractType.ComparisonTypeAssignmentTestable.TestResult| Modifier and Type | Field and Description |
|---|---|
ListSerializer<T> |
serializer |
cellPathSerializer, kindcomparisonType, isByteOrderComparable, reverseComparator| Modifier and Type | Method and Description |
|---|---|
int |
compareCustom(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
Implement IFF ComparisonType is CUSTOM
Compares the ByteBuffer representation of two instances of this class,
for types where this cannot be done by simple in-order comparison of the
unsigned bytes
Standard Java compare semantics
|
AbstractType<?> |
expandUserTypes()
Replace any instances of UserType with equivalent TupleType-s.
|
AbstractType<?> |
freeze() |
AbstractType<?> |
freezeNestedMulticellTypes()
Returns an AbstractType instance that is equivalent to this one, but with all nested UDTs and collections
explicitly frozen.
|
Term |
fromJSONObject(java.lang.Object parsed)
Given a parsed JSON string, return a byte representation of the object.
|
AbstractType<T> |
getElementsType() |
static <T> ListType<T> |
getInstance(AbstractType<T> elements,
boolean isMultiCell) |
static ListType<?> |
getInstance(TypeParser parser) |
ListSerializer<T> |
getSerializer() |
java.nio.ByteBuffer |
getSliceFromSerialized(java.nio.ByteBuffer collection,
java.nio.ByteBuffer from,
java.nio.ByteBuffer to) |
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 |
referencesDuration() |
boolean |
referencesUserType(java.nio.ByteBuffer name) |
java.util.List<java.nio.ByteBuffer> |
serializedValues(java.util.Iterator<Cell> cells) |
static java.lang.String |
setOrListToJsonString(java.nio.ByteBuffer buffer,
AbstractType elementsType,
ProtocolVersion protocolVersion) |
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
ProtocolVersion protocolVersion)
Converts the specified value into its JSON representation.
|
java.lang.String |
toString(boolean ignoreFreezing) |
AbstractType<T> |
valueComparator() |
ListType<?> |
withUpdatedUserType(UserType udt)
Returns an instance of this type with all references to the provided user type recursively replaced with its new
definition.
|
asCQL3Type, collectionSize, equals, fromString, getString, isCollection, isCompatibleWith, isFreezable, isMap, isValueCompatibleWithInternal, makeCollectionReceiver, serializeForNativeProtocol, toString, validateCellValueasCQLTypeStringList, checkComparable, compare, compareCollectionMembers, compareForCQL, componentsCount, compose, decompose, getComponents, getString, isCounter, isEmptyValueMeaningless, isFrozenCollection, isReversed, isTuple, isUDT, isValueCompatibleWith, parseDefaultParameters, readValue, readValue, skipValue, testAssignment, testAssignment, validate, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLengthpublic 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 referencesUserType(java.nio.ByteBuffer name)
referencesUserType in class AbstractType<java.util.List<T>>public ListType<?> withUpdatedUserType(UserType udt)
AbstractTypewithUpdatedUserType in class AbstractType<java.util.List<T>>public AbstractType<?> expandUserTypes()
AbstractTypeexpandUserTypes in class AbstractType<java.util.List<T>>public boolean referencesDuration()
referencesDuration 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 AbstractType<?> freezeNestedMulticellTypes()
AbstractType2.x -> 3.x schema migrations, and can be removed in Cassandra 4.0.
See CASSANDRA-11609 and CASSANDRA-11613.freezeNestedMulticellTypes in class AbstractType<java.util.List<T>>public boolean isMultiCell()
isMultiCell in class AbstractType<java.util.List<T>>public boolean isCompatibleWithFrozen(CollectionType<?> previous)
CollectionTypeisCompatibleWithFrozen in class CollectionType<java.util.List<T>>public boolean isValueCompatibleWithFrozen(CollectionType<?> previous)
CollectionTypeisValueCompatibleWithFrozen in class CollectionType<java.util.List<T>>public int compareCustom(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
AbstractTypecompareCustom in class AbstractType<java.util.List<T>>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.Iterator<Cell> cells)
serializedValues in class CollectionType<java.util.List<T>>public Term fromJSONObject(java.lang.Object parsed) throws MarshalException
AbstractTypefromJSONObject in class AbstractType<java.util.List<T>>parsed - the result of parsing a json stringMarshalExceptionpublic static java.lang.String setOrListToJsonString(java.nio.ByteBuffer buffer,
AbstractType elementsType,
ProtocolVersion protocolVersion)
public java.nio.ByteBuffer getSliceFromSerialized(java.nio.ByteBuffer collection,
java.nio.ByteBuffer from,
java.nio.ByteBuffer to)
public java.lang.String toJSONString(java.nio.ByteBuffer buffer,
ProtocolVersion protocolVersion)
AbstractTypeThe buffer position will stay the same.
toJSONString in class AbstractType<java.util.List<T>>buffer - the value to convertprotocolVersion - the protocol version to use for the conversionCopyright © 2009-2019 The Apache Software Foundation