public class UserType extends TupleType
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
keyspace |
java.nio.ByteBuffer |
name |
reverseComparator| Constructor and Description |
|---|
UserType(java.lang.String keyspace,
java.nio.ByteBuffer name,
java.util.List<java.nio.ByteBuffer> fieldNames,
java.util.List<AbstractType<?>> fieldTypes) |
| Modifier and Type | Method and Description |
|---|---|
CQL3Type |
asCQL3Type() |
boolean |
equals(java.lang.Object o) |
java.nio.ByteBuffer |
fieldName(int i) |
java.util.List<java.nio.ByteBuffer> |
fieldNames() |
AbstractType<?> |
fieldType(int i) |
java.util.List<AbstractType<?>> |
fieldTypes() |
static UserType |
getInstance(TypeParser parser) |
java.lang.String |
getNameAsString() |
int |
hashCode() |
java.lang.String |
toString()
This must be overriden by subclasses if necessary so that for any
AbstractType, this == TypeParser.parse(toString()).
|
void |
validate(java.nio.ByteBuffer bytes) |
allTypes, buildValue, compare, fromString, getSerializer, getString, isCompatibleWith, isValueCompatibleWithInternal, references, size, split, typecompareCollectionMembers, componentsCount, compose, decompose, freeze, fromStringCQL2, getComponents, getString, isByteOrderComparable, isCollection, isCounter, isMultiCell, isValueCompatibleWith, parseDefaultParameters, toString, validateCellValue, validateCollectionMemberpublic final java.lang.String keyspace
public final java.nio.ByteBuffer name
public UserType(java.lang.String keyspace,
java.nio.ByteBuffer name,
java.util.List<java.nio.ByteBuffer> fieldNames,
java.util.List<AbstractType<?>> fieldTypes)
public static UserType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
public AbstractType<?> fieldType(int i)
public java.util.List<AbstractType<?>> fieldTypes()
public java.nio.ByteBuffer fieldName(int i)
public java.util.List<java.nio.ByteBuffer> fieldNames()
public java.lang.String getNameAsString()
public void validate(java.nio.ByteBuffer bytes)
throws MarshalException
validate in class TupleTypeMarshalExceptionpublic boolean equals(java.lang.Object o)
public CQL3Type asCQL3Type()
asCQL3Type in class TupleTypepublic java.lang.String toString()
AbstractTypeCopyright © 2015 The Apache Software Foundation