public class AsciiType extends AbstractType<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
static AsciiType |
instance |
reverseComparator| Modifier and Type | Method and Description |
|---|---|
CQL3Type |
asCQL3Type() |
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
Term |
fromJSONObject(java.lang.Object parsed)
Given a parsed JSON string, return a byte representation of the object.
|
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
TypeSerializer<java.lang.String> |
getSerializer() |
boolean |
isByteOrderComparable() |
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
int protocolVersion)
Converts a value to a JSON string.
|
asCQLTypeStringList, compareCollectionMembers, compareForCQL, componentsCount, compose, decompose, freeze, getComponents, getString, getString, isCollection, isCompatibleWith, isCounter, isEmptyValueMeaningless, isFrozenCollection, isMultiCell, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, readValue, skipValue, toString, toString, validate, validateCellValue, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLengthpublic static final AsciiType instance
public int compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractTypefromString in class AbstractType<java.lang.String>public Term fromJSONObject(java.lang.Object parsed) throws MarshalException
AbstractTypefromJSONObject in class AbstractType<java.lang.String>parsed - the result of parsing a json stringMarshalExceptionpublic java.lang.String toJSONString(java.nio.ByteBuffer buffer,
int protocolVersion)
AbstractTypetoJSONString in class AbstractType<java.lang.String>public CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<java.lang.String>public TypeSerializer<java.lang.String> getSerializer()
getSerializer in class AbstractType<java.lang.String>public boolean isByteOrderComparable()
isByteOrderComparable in class AbstractType<java.lang.String>Copyright © 2015 The Apache Software Foundation