public class CounterColumnType extends AbstractType<java.lang.Long>
AbstractType.ComparisonTypeAssignmentTestable.TestResult| Modifier and Type | Field and Description | 
|---|---|
| static CounterColumnType | instance | 
comparisonType, isByteOrderComparable, reverseComparator| Modifier and Type | Method and Description | 
|---|---|
| CQL3Type | asCQL3Type() | 
| java.lang.Long | compose(java.nio.ByteBuffer bytes) | 
| java.nio.ByteBuffer | decompose(java.lang.Long value) | 
| 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.Long> | getSerializer() | 
| java.lang.String | getString(java.nio.ByteBuffer bytes)get a string representation of the bytes used for various identifier (NOT just for log messages) | 
| boolean | isCounter() | 
| boolean | isEmptyValueMeaningless() | 
| java.lang.String | toJSONString(java.nio.ByteBuffer buffer,
            ProtocolVersion protocolVersion)Converts the specified value into its JSON representation. | 
| void | validateCellValue(java.nio.ByteBuffer cellValue)Validate cell value. | 
asCQLTypeStringList, checkComparable, compare, compareCollectionMembers, compareCustom, compareForCQL, componentsCount, equals, freeze, freezeNestedMulticellTypes, getComponents, getString, isCollection, isCompatibleWith, isFreezable, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, readValue, readValue, referencesDuration, referencesUserType, skipValue, testAssignment, toString, toString, validate, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLengthpublic static final CounterColumnType instance
public boolean isEmptyValueMeaningless()
AbstractTypeisEmptyValueMeaningless in class AbstractType<java.lang.Long>public boolean isCounter()
isCounter in class AbstractType<java.lang.Long>public java.lang.Long compose(java.nio.ByteBuffer bytes)
compose in class AbstractType<java.lang.Long>public java.nio.ByteBuffer decompose(java.lang.Long value)
decompose in class AbstractType<java.lang.Long>public void validateCellValue(java.nio.ByteBuffer cellValue)
                       throws MarshalException
AbstractTypevalidateCellValue in class AbstractType<java.lang.Long>cellValue - ByteBuffer representing cell valueMarshalExceptionpublic java.lang.String getString(java.nio.ByteBuffer bytes)
AbstractTypegetString in class AbstractType<java.lang.Long>public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractTypefromString in class AbstractType<java.lang.Long>public Term fromJSONObject(java.lang.Object parsed)
AbstractTypefromJSONObject in class AbstractType<java.lang.Long>parsed - the result of parsing a json stringpublic java.lang.String toJSONString(java.nio.ByteBuffer buffer,
                                     ProtocolVersion protocolVersion)
AbstractTypeThe buffer position will stay the same.
toJSONString in class AbstractType<java.lang.Long>buffer - the value to convertprotocolVersion - the protocol version to use for the conversionpublic CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<java.lang.Long>public TypeSerializer<java.lang.Long> getSerializer()
getSerializer in class AbstractType<java.lang.Long>Copyright © 2018 The Apache Software Foundation