org.apache.cassandra.io.sstable
Class IndexSummary
java.lang.Object
org.apache.cassandra.io.sstable.IndexSummary
public class IndexSummary
- extends java.lang.Object
Two approaches to building an IndexSummary:
1. Call maybeAddEntry with every potential index entry
2. Call shouldAddEntry, [addEntry,] incrementRowid
Nested Class Summary |
static class |
IndexSummary.KeyPosition
This is a simple container for the index Key and its corresponding position
in the index file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexSummary
public IndexSummary(long expectedKeys)
incrementRowid
public void incrementRowid()
shouldAddEntry
public boolean shouldAddEntry()
addEntry
public void addEntry(DecoratedKey decoratedKey,
long indexPosition)
maybeAddEntry
public void maybeAddEntry(DecoratedKey decoratedKey,
long indexPosition)
getIndexPositions
public java.util.List<IndexSummary.KeyPosition> getIndexPositions()
complete
public void complete()
Copyright © 2010 The Apache Software Foundation