public class SetType<T> extends CollectionType<java.util.Set<T>>
CollectionType.Kind
Modifier and Type | Field and Description |
---|---|
AbstractType<T> |
elements |
kind, MAX_ELEMENTS
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator
Constructor and Description |
---|
SetType(AbstractType<T> elements) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendToStringBuilder(java.lang.StringBuilder sb) |
java.util.Set<T> |
compose(java.nio.ByteBuffer bytes) |
java.nio.ByteBuffer |
decompose(java.util.Set<T> value)
Layout is:
<n><s_1><b_1>...<s_n><b_n>
where:
n is the number of elements
s_i is the number of bytes composing the ith element
b_i is the s_i bytes composing the ith element |
static <T> SetType<T> |
getInstance(AbstractType<T> elements) |
static SetType<?> |
getInstance(TypeParser parser) |
AbstractType<T> |
nameComparator() |
java.nio.ByteBuffer |
serialize(java.util.List<Pair<java.nio.ByteBuffer,IColumn>> columns) |
AbstractType<?> |
valueComparator() |
asCQL3Type, compare, enforceLimit, fromString, getString, getUnsignedShort, isCollection, pack, pack, toString, validate
compareCollectionMembers, fromStringCQL2, getColumnsString, getReverseComparator, getString, isCommutative, isCompatibleWith, isValueCompatibleWith, parseDefaultParameters, validateCollectionMember
public final AbstractType<T> elements
public SetType(AbstractType<T> elements)
public static SetType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
public static <T> SetType<T> getInstance(AbstractType<T> elements)
public AbstractType<T> nameComparator()
nameComparator
in class CollectionType<java.util.Set<T>>
public AbstractType<?> valueComparator()
valueComparator
in class CollectionType<java.util.Set<T>>
public java.util.Set<T> compose(java.nio.ByteBuffer bytes)
compose
in class AbstractType<java.util.Set<T>>
public java.nio.ByteBuffer decompose(java.util.Set<T> value)
<n><s_1><b_1>...<s_n><b_n>
where:
n is the number of elements
s_i is the number of bytes composing the ith element
b_i is the s_i bytes composing the ith elementdecompose
in class AbstractType<java.util.Set<T>>
protected void appendToStringBuilder(java.lang.StringBuilder sb)
appendToStringBuilder
in class CollectionType<java.util.Set<T>>
public java.nio.ByteBuffer serialize(java.util.List<Pair<java.nio.ByteBuffer,IColumn>> columns)
serialize
in class CollectionType<java.util.Set<T>>
Copyright © 2014 The Apache Software Foundation