public class SimpleCType extends AbstractCType
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleCType.SimpleCBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractType<?> |
type |
isByteOrderComparable| Constructor and Description |
|---|
SimpleCType(AbstractType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
AbstractType<?> |
asAbstractType()
Returns a AbstractType corresponding to this CType for thrift sake.
|
CBuilder |
builder()
A builder of Composite.
|
int |
compare(Composite c1,
Composite c2) |
Composite |
fromByteBuffer(java.nio.ByteBuffer bytes)
Deserialize a Composite from a ByteBuffer.
|
boolean |
isCompound()
Returns whether this is a "truly-composite" underneath.
|
CType |
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, deletionInfoSerializer, equals, getByteOrderAsymmetricColumnComparator, getByteOrderColumnComparator, getString, hashCode, indexComparator, indexReverseComparator, isByteOrderComparable, isCompatibleWith, make, rangeTombstoneSerializer, reverseComparator, serializer, sliceBytes, sliceQueryFilterSerializer, sliceSerializer, toString, validateprotected final AbstractType<?> type
public SimpleCType(AbstractType<?> type)
public boolean isCompound()
CTypepublic int size()
CTypepublic int compare(Composite c1, Composite c2)
compare in interface java.util.Comparator<Composite>compare in interface CTypecompare in class AbstractCTypepublic AbstractType<?> subtype(int i)
CTypepublic Composite fromByteBuffer(java.nio.ByteBuffer bytes)
CTypepublic CType setSubtype(int position, AbstractType<?> newType)
CTypepublic AbstractType<?> asAbstractType()
CTypeCopyright © 2018 The Apache Software Foundation