|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.io.SSTable
org.apache.cassandra.io.SSTableReader
public class SSTableReader
SSTableReaders are open()ed by Table.onStart; after that they are created by SSTableWriter.renameAndOpen. Do not re-call open() on existing SSTable files; use the references kept by ColumnFamilyStore post-start instead.
Field Summary |
---|
Fields inherited from class org.apache.cassandra.io.SSTable |
---|
bf, columnFamilyName, FILES_ON_DISK, INDEX_INTERVAL, indexPositions, partitioner, path, TEMPFILE_MARKER |
Method Summary | |
---|---|
int |
compareTo(SSTableReader o)
|
static com.reardencommerce.kernel.collections.shared.evictable.ConcurrentLinkedHashMap<DecoratedKey,java.lang.Long> |
createKeyCache(int size)
|
void |
forceBloomFilterFailures()
obviously only for testing |
static long |
getApproximateKeyCount()
|
static long |
getApproximateKeyCount(java.lang.Iterable<SSTableReader> sstables)
|
AbstractType |
getColumnComparator()
|
ICompactSerializer2<IColumn> |
getColumnSerializer()
|
static java.util.List<DecoratedKey> |
getIndexedDecoratedKeys()
Get all indexed keys in any SSTable for our primary range. |
static java.util.List<DecoratedKey> |
getIndexedDecoratedKeysFor(com.google.common.base.Predicate<SSTable> cfpred,
com.google.common.base.Predicate<DecoratedKey> dkpred)
Get all indexed keys defined by the two predicates. |
java.util.List<org.apache.cassandra.io.SSTable.KeyPosition> |
getIndexPositions()
|
long |
getNearestPosition(DecoratedKey decoratedKey)
like getPosition, but if key is not found will return the location of the first key _greater_ than the desired one, or -1 if no such key exists. |
IPartitioner |
getPartitioner()
|
long |
getPosition(DecoratedKey decoratedKey)
returns the position in the data file to find the given key, or -1 if the key is not present |
SSTableScanner |
getScanner(int bufferSize)
|
static int |
indexInterval()
|
long |
length()
|
ColumnFamily |
makeColumnFamily()
|
void |
markCompacted()
|
static SSTableReader |
open(java.lang.String dataFileName)
|
static SSTableReader |
open(java.lang.String dataFileName,
IPartitioner partitioner,
double cacheFraction)
|
Methods inherited from class org.apache.cassandra.io.SSTable |
---|
bytesOnDisk, compactedFilename, compactedFilename, deleteIfCompacted, filterFilename, filterFilename, getAllFilenames, getColumnFamilyName, getFilename, getTableName, indexFilename, indexFilename, parseTableName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static int indexInterval()
public static long getApproximateKeyCount()
public static long getApproximateKeyCount(java.lang.Iterable<SSTableReader> sstables)
public static java.util.List<DecoratedKey> getIndexedDecoratedKeysFor(com.google.common.base.Predicate<SSTable> cfpred, com.google.common.base.Predicate<DecoratedKey> dkpred)
cfpred
- A Predicate defining matching column families.dkpred
- A Predicate defining matching DecoratedKeys.public static java.util.List<DecoratedKey> getIndexedDecoratedKeys()
public static SSTableReader open(java.lang.String dataFileName) throws java.io.IOException
java.io.IOException
public static SSTableReader open(java.lang.String dataFileName, IPartitioner partitioner, double cacheFraction) throws java.io.IOException
java.io.IOException
public static com.reardencommerce.kernel.collections.shared.evictable.ConcurrentLinkedHashMap<DecoratedKey,java.lang.Long> createKeyCache(int size)
public java.util.List<org.apache.cassandra.io.SSTable.KeyPosition> getIndexPositions()
public long getPosition(DecoratedKey decoratedKey) throws java.io.IOException
java.io.IOException
public long getNearestPosition(DecoratedKey decoratedKey) throws java.io.IOException
java.io.IOException
public long length()
public int compareTo(SSTableReader o)
compareTo
in interface java.lang.Comparable<SSTableReader>
public void markCompacted() throws java.io.IOException
java.io.IOException
public void forceBloomFilterFailures()
public IPartitioner getPartitioner()
public SSTableScanner getScanner(int bufferSize) throws java.io.IOException
java.io.IOException
public AbstractType getColumnComparator()
public ColumnFamily makeColumnFamily()
public ICompactSerializer2<IColumn> getColumnSerializer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |