org.apache.cassandra.io.sstable
Class CacheWriter<K,V>
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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