org.apache.cassandra.db
Class Memtable
java.lang.Object
org.apache.cassandra.db.Memtable
- All Implemented Interfaces:
- java.lang.Comparable<Memtable>, IFlushable<DecoratedKey>
public class Memtable
- extends java.lang.Object
- implements java.lang.Comparable<Memtable>, IFlushable<DecoratedKey>
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()
contents
public java.lang.String contents()
getSortedKeys
public java.util.List<DecoratedKey> getSortedKeys()
- Specified by:
getSortedKeys
in interface IFlushable<DecoratedKey>
writeSortedContents
public SSTableReader writeSortedContents(java.util.List<DecoratedKey> sortedKeys)
throws java.io.IOException
- Specified by:
writeSortedContents
in interface IFlushable<DecoratedKey>
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getKeyIterator
public java.util.Iterator<DecoratedKey> getKeyIterator()
isClean
public boolean isClean()
getSliceIterator
public ColumnIterator getSliceIterator(SliceQueryFilter filter,
AbstractType typeComparator)
- obtain an iterator of columns in this memtable in the specified order starting from a given column.
getNamesIterator
public ColumnIterator getNamesIterator(NamesQueryFilter filter)
isExpired
public boolean isExpired()
Copyright © 2010 The Apache Software Foundation