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(java.nio.ByteBuffer name, AbstractType comparator)
           
 
Method Summary
 void addColumn(IColumn column)
           
 IColumn cloneMe()
           
 SuperColumn cloneMeShallow()
           
 IColumn diff(IColumn columnNew)
           
 AbstractType getComparator()
           
 int getLocalDeletionTime()
           
 long getMarkedForDeleteAt()
           
 java.util.Collection<IColumn> getSortedColumns()
           
 java.lang.String getString(AbstractType comparator)
           
 IColumn getSubColumn(java.nio.ByteBuffer columnName)
           
 java.util.Collection<IColumn> getSubColumns()
           
 boolean isLive()
          For a simple column, live == !isMarkedForDelete.
 boolean isMarkedForDelete()
           
 IColumn localCopy(ColumnFamilyStore cfs)
          clones the column, interning column names and making copies of other underlying byte buffers
 void markForDeleteAt(int localDeleteTime, long timestamp)
          Deprecated. 
 long mostRecentLiveChangeAt()
           
 java.nio.ByteBuffer name()
           
 void putColumn(IColumn column)
           
 IColumn reconcile(IColumn c)
           
 void remove(java.nio.ByteBuffer columnName)
           
 int serializationFlags()
           
 int serializedSize()
          This returns the size of the super-column when serialized.
static org.apache.cassandra.db.SuperColumnSerializer serializer(AbstractType comparator)
           
 IColumn shallowCopy()
           
 int size()
          This calculates the exact size of the sub columns on the fly
 long timestamp()
           
 void updateDigest(java.security.MessageDigest digest)
           
 void validateFields(CFMetaData metadata)
           
 java.nio.ByteBuffer value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperColumn

public SuperColumn(java.nio.ByteBuffer name,
                   AbstractType comparator)
Method Detail

serializer

public static org.apache.cassandra.db.SuperColumnSerializer serializer(AbstractType comparator)

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 java.nio.ByteBuffer name()
Specified by:
name in interface IColumn

getSubColumns

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

getSortedColumns

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

getSubColumn

public IColumn getSubColumn(java.nio.ByteBuffer 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(java.nio.ByteBuffer columnName)
Specified by:
remove in interface IColumnContainer

timestamp

public long timestamp()
Specified by:
timestamp in interface IColumn

mostRecentLiveChangeAt

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

value

public java.nio.ByteBuffer 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 long 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

isLive

public boolean isLive()
Description copied from interface: IColumn
For a simple column, live == !isMarkedForDelete. For a supercolumn, live means it has at least one subcolumn whose timestamp is greater than the supercolumn deleted-at time.

Specified by:
isLive in interface IColumn

getLocalDeletionTime

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

markForDeleteAt

@Deprecated
public void markForDeleteAt(int localDeleteTime,
                                       long timestamp)
Deprecated. 


shallowCopy

public IColumn shallowCopy()

localCopy

public IColumn localCopy(ColumnFamilyStore cfs)
Description copied from interface: IColumn
clones the column, interning column names and making copies of other underlying byte buffers

Specified by:
localCopy in interface IColumn

reconcile

public IColumn reconcile(IColumn c)
Specified by:
reconcile in interface IColumn

serializationFlags

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

validateFields

public void validateFields(CFMetaData metadata)
                    throws MarshalException
Specified by:
validateFields in interface IColumn
Throws:
MarshalException


Copyright © 2011 The Apache Software Foundation