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.lang.String |
fieldNameAsString(int i) |
java.util.List<java.nio.ByteBuffer> |
fieldNames() |
AbstractType<?> |
fieldType(int i) |
java.util.List<AbstractType<?>> |
fieldTypes() |
Term |
fromJSONObject(java.lang.Object parsed)
Given a parsed JSON string, return a byte representation of the object.
|
static UserType |
getInstance(TypeParser parser) |
java.lang.String |
getNameAsString() |
TypeSerializer<java.nio.ByteBuffer> |
getSerializer() |
int |
hashCode() |
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
int protocolVersion)
Converts the specified value into its JSON representation.
|
java.lang.String |
toString()
This must be overriden by subclasses if necessary so that for any
AbstractType, this == TypeParser.parse(toString()).
|
allTypes, buildValue, compare, fromString, getString, isCompatibleWith, isValueCompatibleWithInternal, references, size, split, typeasCQLTypeStringList, compareCollectionMembers, componentsCount, compose, decompose, freeze, getComponents, getString, isByteOrderComparable, isCollection, isCounter, isEmptyValueMeaningless, isFrozenCollection, isMultiCell, isReversed, isValueCompatibleWith, parseDefaultParameters, toString, validate, 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.lang.String fieldNameAsString(int i)
public java.util.List<java.nio.ByteBuffer> fieldNames()
public java.lang.String getNameAsString()
public Term fromJSONObject(java.lang.Object parsed) throws MarshalException
AbstractTypefromJSONObject in class TupleTypeparsed - the result of parsing a json stringMarshalExceptionpublic java.lang.String toJSONString(java.nio.ByteBuffer buffer,
int protocolVersion)
AbstractTypeThe buffer position will stay the same.
toJSONString in class TupleTypebuffer - the value to convertprotocolVersion - the protocol version to use for the conversionpublic boolean equals(java.lang.Object o)
public CQL3Type asCQL3Type()
asCQL3Type in class TupleTypepublic java.lang.String toString()
AbstractTypepublic TypeSerializer<java.nio.ByteBuffer> getSerializer()
getSerializer in class TupleTypeCopyright © 2018 The Apache Software Foundation