org.apache.cassandra.io.sstable
Class CacheWriter<K,V>

java.lang.Object
  extended by org.apache.cassandra.io.sstable.CacheWriter<K,V>
All Implemented Interfaces:
ICompactionInfo

public class CacheWriter<K,V>
extends java.lang.Object
implements ICompactionInfo


Constructor Summary
CacheWriter(java.lang.String columnFamily, JMXInstrumentedCache<K,V> cache, java.io.File path, com.google.common.base.Function<K,java.nio.ByteBuffer> converter)
           
 
Method Summary
 long getBytesComplete()
           
 java.lang.String getColumnFamily()
           
 java.lang.String getTaskType()
           
 long getTotalBytes()
           
 void saveCache()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheWriter

public CacheWriter(java.lang.String columnFamily,
                   JMXInstrumentedCache<K,V> cache,
                   java.io.File path,
                   com.google.common.base.Function<K,java.nio.ByteBuffer> converter)
Method Detail

saveCache

public void saveCache()
               throws java.io.IOException
Throws:
java.io.IOException

getTotalBytes

public long getTotalBytes()
Specified by:
getTotalBytes in interface ICompactionInfo

getBytesComplete

public long getBytesComplete()
Specified by:
getBytesComplete in interface ICompactionInfo

getTaskType

public java.lang.String getTaskType()
Specified by:
getTaskType in interface ICompactionInfo

getColumnFamily

public java.lang.String getColumnFamily()


Copyright © 2011 The Apache Software Foundation