org.apache.cassandra.db.marshal
Class BytesType

java.lang.Object
  extended by org.apache.cassandra.db.marshal.AbstractType
      extended by org.apache.cassandra.db.marshal.BytesType
All Implemented Interfaces:
java.util.Comparator<byte[]>
Direct Known Subclasses:
AsciiType, UTF8Type

public class BytesType
extends AbstractType


Field Summary
static BytesType instance
           
 
Method Summary
 int compare(byte[] o1, byte[] o2)
           
 java.lang.String getString(byte[] bytes)
          get a string representation of the bytes suitable for log messages
 
Methods inherited from class org.apache.cassandra.db.marshal.AbstractType
getColumnsString, getReverseComparator, getString, 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
equals
 

Field Detail

instance

public static final BytesType instance
Method Detail

compare

public int compare(byte[] o1,
                   byte[] o2)

getString

public java.lang.String getString(byte[] bytes)
Description copied from class: AbstractType
get a string representation of the bytes suitable for log messages

Specified by:
getString in class AbstractType


Copyright © 2010 The Apache Software Foundation