org.apache.cassandra.io
Class CompactionController

java.lang.Object
  extended by org.apache.cassandra.io.CompactionController

public class CompactionController
extends java.lang.Object

Manage compaction options.


Field Summary
 int gcBefore
           
 boolean isMajor
           
 
Constructor Summary
CompactionController(ColumnFamilyStore cfs, java.util.Collection<SSTableReader> sstables, boolean isMajor, int gcBefore, boolean forceDeserialize)
           
 
Method Summary
static CompactionController getBasicController(boolean forceDeserialize)
          Returns a controller that never purge
 java.lang.String getColumnFamily()
           
 java.lang.String getKeyspace()
           
 void invalidateCachedRow(DecoratedKey key)
           
 boolean needDeserialize()
           
 void removeDeletedInCache(DecoratedKey key)
           
 boolean shouldPurge(DecoratedKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isMajor

public final boolean isMajor

gcBefore

public final int gcBefore
Constructor Detail

CompactionController

public CompactionController(ColumnFamilyStore cfs,
                            java.util.Collection<SSTableReader> sstables,
                            boolean isMajor,
                            int gcBefore,
                            boolean forceDeserialize)
Method Detail

getBasicController

public static CompactionController getBasicController(boolean forceDeserialize)
Returns a controller that never purge


getKeyspace

public java.lang.String getKeyspace()
Returns:
The keyspace name: only valid if created with a non-null CFS.

getColumnFamily

public java.lang.String getColumnFamily()
Returns:
The column family name: only valid if created with a non-null CFS.

shouldPurge

public boolean shouldPurge(DecoratedKey key)

needDeserialize

public boolean needDeserialize()

invalidateCachedRow

public void invalidateCachedRow(DecoratedKey key)

removeDeletedInCache

public void removeDeletedInCache(DecoratedKey key)


Copyright © 2011 The Apache Software Foundation