org.apache.cassandra.db
Class Memtable
java.lang.Object
org.apache.cassandra.db.Memtable
- All Implemented Interfaces:
- java.lang.Comparable<Memtable>
public class Memtable
- extends java.lang.Object
- implements java.lang.Comparable<Memtable>
Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isFlushed
public boolean isFlushed()
compareTo
public int compareTo(Memtable rhs)
- Compares two Memtable based on creation time.
- Specified by:
compareTo
in interface java.lang.Comparable<Memtable>
- Parameters:
rhs
- Memtable to compare to.
- Returns:
- a negative integer, zero, or a positive integer as this object
is less than, equal to, or greater than the specified object.
getCurrentSize
public int getCurrentSize()
getCurrentObjectCount
public int getCurrentObjectCount()
forceflush
public void forceflush()
contents
public java.lang.String contents()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getKeyIterator
public static java.util.Iterator<java.lang.String> getKeyIterator(java.util.Set<java.lang.String> keys)
isClean
public boolean isClean()
Copyright © 2009 The Apache Software Foundation