|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.io.IndexHelper
public class IndexHelper
Provides helper to serialize, deserialize and use column indexes.
Nested Class Summary | |
---|---|
static class |
IndexHelper.IndexInfo
|
Constructor Summary | |
---|---|
IndexHelper()
|
Method Summary | |
---|---|
static BloomFilter |
defreezeBloomFilter(java.io.RandomAccessFile file)
Defreeze the bloom filter. |
static java.util.ArrayList<IndexHelper.IndexInfo> |
deserializeIndex(java.io.RandomAccessFile in)
Deserialize the index into a structure and return the number of bytes read. |
static java.util.Comparator<IndexHelper.IndexInfo> |
getComparator(AbstractType nameComparator)
|
static int |
indexFor(byte[] name,
java.util.List<IndexHelper.IndexInfo> indexList,
AbstractType comparator,
boolean reversed)
the index of the IndexInfo in which @name will be found. |
static int |
skipBloomFilter(java.io.DataInput in)
Skip the bloom filter and return the bytes read. |
static int |
skipBloomFilterAndIndex(java.io.DataInput in)
Skip the bloom filter and the index and return the bytes read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexHelper()
Method Detail |
---|
public static int skipBloomFilterAndIndex(java.io.DataInput in) throws java.io.IOException
in
- the data input from which the bloom filter and index
should be skipped
java.io.IOException
public static int skipBloomFilter(java.io.DataInput in) throws java.io.IOException
in
- the data input from which the bloom filter
should be skipped
java.io.IOException
public static java.util.ArrayList<IndexHelper.IndexInfo> deserializeIndex(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static BloomFilter defreezeBloomFilter(java.io.RandomAccessFile file) throws java.io.IOException
java.io.IOException
public static int indexFor(byte[] name, java.util.List<IndexHelper.IndexInfo> indexList, AbstractType comparator, boolean reversed)
public static java.util.Comparator<IndexHelper.IndexInfo> getComparator(AbstractType nameComparator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |