org.apache.cassandra.io
Class IndexSummary

java.lang.Object
  extended by org.apache.cassandra.io.IndexSummary

public class IndexSummary
extends java.lang.Object


Nested Class Summary
static class IndexSummary.KeyPosition
          This is a simple container for the index Key and its corresponding position in the index file.
 
Field Summary
static int INDEX_INTERVAL
          Every 128th index entry is loaded into memory so we know where to start looking for the actual key w/o seeking
 
Constructor Summary
IndexSummary()
           
 
Method Summary
 void complete()
           
 java.util.List<IndexSummary.KeyPosition> getIndexPositions()
           
 SSTable.PositionSize getSpannedPosition(IndexSummary.KeyPosition sampledPosition)
           
 SSTable.PositionSize getSpannedPosition(long nextIndexPosition)
           
 void maybeAddEntry(DecoratedKey decoratedKey, long dataPosition, long dataSize, long indexPosition, long nextIndexPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX_INTERVAL

public static final int INDEX_INTERVAL
Every 128th index entry is loaded into memory so we know where to start looking for the actual key w/o seeking

See Also:
Constant Field Values
Constructor Detail

IndexSummary

public IndexSummary()
Method Detail

maybeAddEntry

public void maybeAddEntry(DecoratedKey decoratedKey,
                          long dataPosition,
                          long dataSize,
                          long indexPosition,
                          long nextIndexPosition)

getIndexPositions

public java.util.List<IndexSummary.KeyPosition> getIndexPositions()

complete

public void complete()

getSpannedPosition

public SSTable.PositionSize getSpannedPosition(IndexSummary.KeyPosition sampledPosition)

getSpannedPosition

public SSTable.PositionSize getSpannedPosition(long nextIndexPosition)


Copyright © 2010 The Apache Software Foundation