Class IndexSummary.IndexSummarySerializer
- java.lang.Object
-
- org.apache.cassandra.io.sstable.indexsummary.IndexSummary.IndexSummarySerializer
-
- Enclosing class:
- IndexSummary
public static class IndexSummary.IndexSummarySerializer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IndexSummarySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.io.InputStream & DataInputPlus>
IndexSummarydeserialize(T in, IPartitioner partitioner, int expectedMinIndexInterval, int maxIndexInterval)
Pair<DecoratedKey,DecoratedKey>
deserializeFirstLastKey(DataInputPlus.DataInputStreamPlus in, IPartitioner partitioner)
Deserializes the first and last key stored in the summaryvoid
serialize(IndexSummary t, DataOutputPlus out)
-
-
-
Method Detail
-
serialize
public void serialize(IndexSummary t, DataOutputPlus out) throws java.io.IOException
- Throws:
java.io.IOException
-
deserialize
public <T extends java.io.InputStream & DataInputPlus> IndexSummary deserialize(T in, IPartitioner partitioner, int expectedMinIndexInterval, int maxIndexInterval) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeFirstLastKey
public Pair<DecoratedKey,DecoratedKey> deserializeFirstLastKey(DataInputPlus.DataInputStreamPlus in, IPartitioner partitioner) throws java.io.IOException
Deserializes the first and last key stored in the summaryOnly for use by offline tools like SSTableMetadataViewer, otherwise SSTable.first/last should be used.
- Throws:
java.io.IOException
-
-