org.apache.cassandra.db
Class DeletedColumn

java.lang.Object
  extended by org.apache.cassandra.db.Column
      extended by org.apache.cassandra.db.DeletedColumn
All Implemented Interfaces:
IColumn

public class DeletedColumn
extends Column


Field Summary
 
Fields inherited from class org.apache.cassandra.db.Column
name, timestamp, value
 
Fields inherited from interface org.apache.cassandra.db.IColumn
MAX_NAME_LENGTH
 
Constructor Summary
DeletedColumn(java.nio.ByteBuffer name, java.nio.ByteBuffer value, long timestamp)
           
DeletedColumn(java.nio.ByteBuffer name, int localDeletionTime, long timestamp)
           
 
Method Summary
 int getLocalDeletionTime()
           
 long getMarkedForDeleteAt()
           
 boolean isMarkedForDelete()
           
 IColumn localCopy(ColumnFamilyStore cfs)
          clones the column for the row cache, interning column names and making copies of other underlying byte buffers
 IColumn localCopy(ColumnFamilyStore cfs, Allocator allocator)
          clones the column for the memtable, interning column names and making copies of other underlying byte buffers.
 IColumn reconcile(IColumn column, Allocator allocator)
           
 int serializationFlags()
           
 void validateFields(CFMetaData metadata)
           
 
Methods inherited from class org.apache.cassandra.db.Column
addColumn, addColumn, diff, equals, getString, getSubColumn, getSubColumns, hasExpiredTombstones, hashCode, isLive, maxTimestamp, mostRecentLiveChangeAt, name, reconcile, serializedSize, serializer, size, timestamp, updateDigest, validateName, value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletedColumn

public DeletedColumn(java.nio.ByteBuffer name,
                     int localDeletionTime,
                     long timestamp)

DeletedColumn

public DeletedColumn(java.nio.ByteBuffer name,
                     java.nio.ByteBuffer value,
                     long timestamp)
Method Detail

isMarkedForDelete

public boolean isMarkedForDelete()
Specified by:
isMarkedForDelete in interface IColumn
Overrides:
isMarkedForDelete in class Column

getMarkedForDeleteAt

public long getMarkedForDeleteAt()
Specified by:
getMarkedForDeleteAt in interface IColumn
Overrides:
getMarkedForDeleteAt in class Column

getLocalDeletionTime

public int getLocalDeletionTime()
Specified by:
getLocalDeletionTime in interface IColumn
Overrides:
getLocalDeletionTime in class Column

reconcile

public IColumn reconcile(IColumn column,
                         Allocator allocator)
Specified by:
reconcile in interface IColumn
Overrides:
reconcile in class Column

localCopy

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

Specified by:
localCopy in interface IColumn
Overrides:
localCopy in class Column

localCopy

public IColumn localCopy(ColumnFamilyStore cfs,
                         Allocator allocator)
Description copied from interface: IColumn
clones the column for the memtable, interning column names and making copies of other underlying byte buffers. Unlike the other localCopy, this uses Allocator to allocate values in contiguous memory regions, which helps avoid heap fragmentation.

Specified by:
localCopy in interface IColumn
Overrides:
localCopy in class Column

serializationFlags

public int serializationFlags()
Specified by:
serializationFlags in interface IColumn
Overrides:
serializationFlags in class Column

validateFields

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


Copyright © 2011 The Apache Software Foundation