Package org.apache.cassandra.db
Class Clustering.Serializer
java.lang.Object
org.apache.cassandra.db.Clustering.Serializer
- Enclosing interface:
- Clustering<V>
Serializer for Clustering object.
Because every clustering in a given table must have the same size (ant that size cannot actually change once the table has been defined), we don't record that size.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClustering<byte[]>deserialize(ByteBuffer in, int version, List<AbstractType<?>> types) Clustering<byte[]>deserialize(DataInputPlus in, int version, List<AbstractType<?>> types) serialize(Clustering<?> clustering, int version, List<AbstractType<?>> types) voidserialize(Clustering<?> clustering, DataOutputPlus out, int version, List<AbstractType<?>> types) longserializedSize(Clustering<?> clustering, int version, List<AbstractType<?>> types) voidskip(DataInputPlus in, int version, List<AbstractType<?>> types)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(Clustering<?> clustering, DataOutputPlus out, int version, List<AbstractType<?>> types) throws IOException - Throws:
IOException
-
serialize
-
serializedSize
-
skip
- Throws:
IOException
-
deserialize
public Clustering<byte[]> deserialize(DataInputPlus in, int version, List<AbstractType<?>> types) throws IOException - Throws:
IOException
-
deserialize
-