org.apache.cassandra.db
Class Memtable

java.lang.Object
  extended by org.apache.cassandra.db.Memtable
All Implemented Interfaces:
java.lang.Comparable<Memtable>

public class Memtable
extends java.lang.Object
implements java.lang.Comparable<Memtable>


Method Summary
 int compareTo(Memtable rhs)
          Compares two Memtable based on creation time.
 java.lang.String contents()
           
 int getCurrentObjectCount()
           
 int getCurrentSize()
           
static java.util.Iterator<java.lang.String> getKeyIterator(java.util.Set<java.lang.String> keys)
           
 ColumnIterator getNamesIterator(NamesQueryFilter filter)
           
 ColumnIterator getSliceIterator(SliceQueryFilter filter, AbstractType typeComparator)
          obtain an iterator of columns in this memtable in the specified order starting from a given column.
 boolean isClean()
           
 boolean isFlushed()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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()

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()

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)


Copyright © 2009 The Apache Software Foundation