org.apache.cassandra.io
Class CompactionController
java.lang.Object
org.apache.cassandra.io.CompactionController
public class CompactionController
- extends java.lang.Object
Manage compaction options.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isMajor
public final boolean isMajor
gcBefore
public final int gcBefore
CompactionController
public CompactionController(ColumnFamilyStore cfs,
java.util.Collection<SSTableReader> sstables,
boolean isMajor,
int gcBefore,
boolean forceDeserialize)
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