org.apache.cassandra.db.marshal
Class AbstractCommutativeType

java.lang.Object
  extended by org.apache.cassandra.db.marshal.AbstractType<java.lang.Long>
      extended by org.apache.cassandra.db.marshal.AbstractCommutativeType
All Implemented Interfaces:
java.util.Comparator<java.nio.ByteBuffer>
Direct Known Subclasses:
CounterColumnType

public abstract class AbstractCommutativeType
extends AbstractType<java.lang.Long>


Field Summary
 
Fields inherited from class org.apache.cassandra.db.marshal.AbstractType
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, reverseComparator
 
Constructor Summary
AbstractCommutativeType()
           
 
Method Summary
 java.lang.Long compose(java.nio.ByteBuffer bytes)
           
abstract  Column createColumn(java.nio.ByteBuffer name, java.nio.ByteBuffer value, long timestamp)
          create commutative column
 java.nio.ByteBuffer decompose(java.lang.Long value)
           
 int getJdbcType()
           
 int getPrecision(java.lang.Long obj)
           
 int getScale(java.lang.Long obj)
           
 java.lang.Class<java.lang.Long> getType()
          returns the class this AbstractType represents.
 boolean isCaseSensitive()
           
 boolean isCommutative()
           
 boolean isCurrency()
           
 boolean isSigned()
           
 boolean needsQuotes()
           
 
Methods inherited from class org.apache.cassandra.db.marshal.AbstractType
fromString, getColumnsString, getReverseComparator, getString, getString, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

AbstractCommutativeType

public AbstractCommutativeType()
Method Detail

isCommutative

public boolean isCommutative()
Overrides:
isCommutative in class AbstractType<java.lang.Long>

compose

public java.lang.Long compose(java.nio.ByteBuffer bytes)
Specified by:
compose in class AbstractType<java.lang.Long>

decompose

public java.nio.ByteBuffer decompose(java.lang.Long value)
Specified by:
decompose in class AbstractType<java.lang.Long>

createColumn

public abstract Column createColumn(java.nio.ByteBuffer name,
                                    java.nio.ByteBuffer value,
                                    long timestamp)
create commutative column


getType

public java.lang.Class<java.lang.Long> getType()
Description copied from class: AbstractType
returns the class this AbstractType represents.

Specified by:
getType in class AbstractType<java.lang.Long>

isSigned

public boolean isSigned()
Specified by:
isSigned in class AbstractType<java.lang.Long>

isCaseSensitive

public boolean isCaseSensitive()
Specified by:
isCaseSensitive in class AbstractType<java.lang.Long>

isCurrency

public boolean isCurrency()
Specified by:
isCurrency in class AbstractType<java.lang.Long>

getPrecision

public int getPrecision(java.lang.Long obj)
Specified by:
getPrecision in class AbstractType<java.lang.Long>

getScale

public int getScale(java.lang.Long obj)
Specified by:
getScale in class AbstractType<java.lang.Long>

getJdbcType

public int getJdbcType()
Specified by:
getJdbcType in class AbstractType<java.lang.Long>

needsQuotes

public boolean needsQuotes()
Specified by:
needsQuotes in class AbstractType<java.lang.Long>


Copyright © 2011 The Apache Software Foundation