org.apache.cassandra.db
Class SuperColumn

java.lang.Object
  extended by org.apache.cassandra.db.SuperColumn
All Implemented Interfaces:
IColumn, IColumnContainer

public class SuperColumn
extends java.lang.Object
implements IColumn, IColumnContainer


Field Summary
 
Fields inherited from interface org.apache.cassandra.db.IColumn
MAX_NAME_LENGTH
 
Constructor Summary
SuperColumn(byte[] name, AbstractType comparator, ClockType clockType, AbstractReconciler reconciler)
           
 
Method Summary
 void addColumn(IColumn column)
           
 IClock clock()
           
 IColumn cloneMe()
           
 SuperColumn cloneMeShallow()
           
 IColumn diff(IColumn columnNew)
           
 AbstractType getComparator()
           
 int getLocalDeletionTime()
           
 IClock getMarkedForDeleteAt()
           
 java.lang.String getString(AbstractType comparator)
           
 IColumn getSubColumn(byte[] columnName)
           
 java.util.Collection<IColumn> getSubColumns()
           
 boolean isMarkedForDelete()
           
 void markForDeleteAt(int localDeleteTime, IClock clock)
          Deprecated. 
 IClock mostRecentLiveChangeAt()
           
 byte[] name()
           
 void putColumn(IColumn column)
           
 void remove(byte[] columnName)
           
 int serializedSize()
          This returns the size of the super-column when serialized.
static org.apache.cassandra.db.SuperColumnSerializer serializer(AbstractType comparator, ClockType clockType, AbstractReconciler reconciler)
           
 int size()
          This calculates the exact size of the sub columns on the fly
 void updateDigest(java.security.MessageDigest digest)
           
 byte[] value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperColumn

public SuperColumn(byte[] name,
                   AbstractType comparator,
                   ClockType clockType,
                   AbstractReconciler reconciler)
Method Detail

serializer

public static org.apache.cassandra.db.SuperColumnSerializer serializer(AbstractType comparator,
                                                                       ClockType clockType,
                                                                       AbstractReconciler reconciler)

getComparator

public AbstractType getComparator()
Specified by:
getComparator in interface IColumnContainer

cloneMeShallow

public SuperColumn cloneMeShallow()

cloneMe

public IColumn cloneMe()

isMarkedForDelete

public boolean isMarkedForDelete()
Specified by:
isMarkedForDelete in interface IColumn
Specified by:
isMarkedForDelete in interface IColumnContainer

name

public byte[] name()
Specified by:
name in interface IColumn

getSubColumns

public java.util.Collection<IColumn> getSubColumns()
Specified by:
getSubColumns in interface IColumn

getSubColumn

public IColumn getSubColumn(byte[] columnName)
Specified by:
getSubColumn in interface IColumn

size

public int size()
This calculates the exact size of the sub columns on the fly

Specified by:
size in interface IColumn

serializedSize

public int serializedSize()
This returns the size of the super-column when serialized.

Specified by:
serializedSize in interface IColumn
See Also:
IColumn.serializedSize()

remove

public void remove(byte[] columnName)

clock

public IClock clock()
Specified by:
clock in interface IColumn

mostRecentLiveChangeAt

public IClock mostRecentLiveChangeAt()
Specified by:
mostRecentLiveChangeAt in interface IColumn

value

public byte[] value()
Specified by:
value in interface IColumn

addColumn

public void addColumn(IColumn column)
Specified by:
addColumn in interface IColumn
Specified by:
addColumn in interface IColumnContainer

putColumn

public void putColumn(IColumn column)

getMarkedForDeleteAt

public IClock getMarkedForDeleteAt()
Specified by:
getMarkedForDeleteAt in interface IColumn
Specified by:
getMarkedForDeleteAt in interface IColumnContainer

diff

public IColumn diff(IColumn columnNew)
Specified by:
diff in interface IColumn

updateDigest

public void updateDigest(java.security.MessageDigest digest)
Specified by:
updateDigest in interface IColumn

getString

public java.lang.String getString(AbstractType comparator)
Specified by:
getString in interface IColumn

getLocalDeletionTime

public int getLocalDeletionTime()
Specified by:
getLocalDeletionTime in interface IColumn

markForDeleteAt

@Deprecated
public void markForDeleteAt(int localDeleteTime,
                                       IClock clock)
Deprecated. 



Copyright © 2010 The Apache Software Foundation