|
||||||||||
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. Author : Karthik Ranganathan ( kranganathan@facebook.com )
Nested Class Summary | |
---|---|
static class |
IndexHelper.ColumnIndexFactory
|
static class |
IndexHelper.ColumnIndexInfo
A helper class to generate indexes while the columns are sorted by name on disk. |
static class |
IndexHelper.ColumnRange
A column range containing the start and end offset of the appropriate column index chunk and the number of columns in that chunk. |
static class |
IndexHelper.TimeRange
Encapsulates a time range. |
Constructor Summary | |
---|---|
IndexHelper()
|
Method Summary | |
---|---|
static void |
serialize(int indexSizeInBytes,
java.util.List<IndexHelper.ColumnIndexInfo> columnIndexList,
java.io.DataOutputStream dos)
Serializes a column index to a data output stream |
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. |
static int |
skipIndex(java.io.DataInput file)
Skip the index and return the number of 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 void serialize(int indexSizeInBytes, java.util.List<IndexHelper.ColumnIndexInfo> columnIndexList, java.io.DataOutputStream dos) throws java.io.IOException
indexSizeInBytes
- Size of index to be writtencolumnIndexList
- List of column index entries as objectsdos
- the output stream into which the column index is to be written
java.io.IOException
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 int skipIndex(java.io.DataInput file) throws java.io.IOException
file
- the data input from which the index should be skipped
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |