org.apache.cassandra.db
Class Column
java.lang.Object
org.apache.cassandra.db.Column
- All Implemented Interfaces:
- IColumn
public final class Column
- extends java.lang.Object
- implements IColumn
Column is immutable, which prevents all kinds of confusion in a multithreaded environment.
(TODO: look at making SuperColumn immutable too. This is trickier but is probably doable
with something like PCollections -- http://code.google.com
Author : Avinash Lakshman ( alakshman@facebook.com ) & Prashant Malik ( pmalik@facebook.com )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public java.lang.String name()
- Specified by:
name
in interface IColumn
getSubColumn
public IColumn getSubColumn(java.lang.String columnName)
- Specified by:
getSubColumn
in interface IColumn
value
public byte[] value()
- Specified by:
value
in interface IColumn
value
public byte[] value(java.lang.String key)
- Specified by:
value
in interface IColumn
getSubColumns
public java.util.Collection<IColumn> getSubColumns()
- Specified by:
getSubColumns
in interface IColumn
getObjectCount
public int getObjectCount()
- Specified by:
getObjectCount
in interface IColumn
timestamp
public long timestamp()
- Specified by:
timestamp
in interface IColumn
timestamp
public long timestamp(java.lang.String key)
- Specified by:
timestamp
in interface IColumn
isMarkedForDelete
public boolean isMarkedForDelete()
- Specified by:
isMarkedForDelete
in interface IColumn
getMarkedForDeleteAt
public long getMarkedForDeleteAt()
- Specified by:
getMarkedForDeleteAt
in interface IColumn
size
public int size()
- Specified by:
size
in interface IColumn
serializedSize
public int serializedSize()
- Specified by:
serializedSize
in interface IColumn
addColumn
public void addColumn(IColumn column)
- Specified by:
addColumn
in interface IColumn
diff
public IColumn diff(IColumn column)
- Specified by:
diff
in interface IColumn
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
digest
public byte[] digest()
- Specified by:
digest
in interface IColumn
getLocalDeletionTime
public int getLocalDeletionTime()
- Specified by:
getLocalDeletionTime
in interface IColumn
comparePriority
public long comparePriority(Column o)
Copyright © 2009 The Apache Software Foundation