public class CompoundCType extends AbstractCType
Modifier and Type | Class and Description |
---|---|
static class |
CompoundCType.CompoundCBuilder |
isByteOrderComparable
Constructor and Description |
---|
CompoundCType(java.util.List<AbstractType<?>> types) |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
asAbstractType()
Returns a AbstractType corresponding to this CType for thrift sake.
|
CBuilder |
builder()
A builder of Composite.
|
Composite |
fromByteBuffer(java.nio.ByteBuffer bytes)
Deserialize a Composite from a ByteBuffer.
|
boolean |
isCompound()
Returns whether this is a "truly-composite" underneath.
|
CompoundCType |
setSubtype(int position,
AbstractType<?> newType)
Returns a new CType that is equivalent to this CType but with
one of the subtype replaced by the provided new type.
|
int |
size()
The number of subtypes for this CType.
|
AbstractType<?> |
subtype(int i)
Gets a subtype of this CType.
|
checkRemaining, compare, deletionInfoSerializer, equals, getByteOrderAsymmetricColumnComparator, getByteOrderColumnComparator, getString, hashCode, indexComparator, indexReverseComparator, isByteOrderComparable, isCompatibleWith, make, rangeTombstoneSerializer, reverseComparator, serializer, sliceBytes, sliceQueryFilterSerializer, sliceSerializer, toString, validate
public CompoundCType(java.util.List<AbstractType<?>> types)
public boolean isCompound()
CType
public int size()
CType
public AbstractType<?> subtype(int i)
CType
public Composite fromByteBuffer(java.nio.ByteBuffer bytes)
CType
public CompoundCType setSubtype(int position, AbstractType<?> newType)
CType
public AbstractType<?> asAbstractType()
CType
Copyright © 2020 The Apache Software Foundation