Package org.apache.cassandra.db
Class ClusteringPrefix.Deserializer
java.lang.Object
org.apache.cassandra.db.ClusteringPrefix.Deserializer
- Enclosing interface:
- ClusteringPrefix<V>
Helper class that makes the deserialization of clustering prefixes faster.
The main reason for this is that when we deserialize rows from sstables, there is many cases where we have a bunch of rows to skip at the beginning of an index block because those rows are before the requested slice. This class make sure we can answer the question "is the next row on disk before the requested slice" with as little work as possible. It does that by providing a comparison method that deserialize only what is needed to decide of the comparison.
-
Constructor Summary
ConstructorsConstructorDescriptionDeserializer(ClusteringComparator comparator, DataInputPlus in, SerializationHeader header) -
Method Summary
Modifier and TypeMethodDescription<T> intcompareNextTo(ClusteringBoundOrBoundary<T> bound) ClusteringBoundOrBoundary<byte[]>Clustering<byte[]>voidprepare(int flags, int extendedFlags) skipNext()
-
Constructor Details
-
Deserializer
-
-
Method Details
-
prepare
- Throws:
IOException
-
compareNextTo
- Throws:
IOException
-
deserializeNextBound
- Throws:
IOException
-
deserializeNextClustering
- Throws:
IOException
-
skipNext
- Throws:
IOException
-