Package org.apache.cassandra.io.sstable
Class IndexInfo.Serializer
- java.lang.Object
-
- org.apache.cassandra.io.sstable.IndexInfo.Serializer
-
- All Implemented Interfaces:
ISerializer<IndexInfo>
- Enclosing class:
- IndexInfo
public static class IndexInfo.Serializer extends java.lang.Object implements ISerializer<IndexInfo>
-
-
Field Summary
Fields Modifier and Type Field Description static longWIDTH_BASE
-
Constructor Summary
Constructors Constructor Description Serializer(Version version, java.util.List<AbstractType<?>> clusteringTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexInfodeserialize(DataInputPlus in)Deserialize from the specified DataInput instance.voidserialize(IndexInfo info, DataOutputPlus out)Serialize the specified type into the specified DataOutput instance.longserializedSize(IndexInfo info)voidskip(DataInputPlus in)
-
-
-
Field Detail
-
WIDTH_BASE
public static final long WIDTH_BASE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Serializer
public Serializer(Version version, java.util.List<AbstractType<?>> clusteringTypes)
-
-
Method Detail
-
serialize
public void serialize(IndexInfo info, DataOutputPlus out) throws java.io.IOException
Description copied from interface:ISerializerSerialize the specified type into the specified DataOutput instance.- Specified by:
serializein interfaceISerializer<IndexInfo>- Parameters:
info- type that needs to be serializedout- DataOutput into which serialization needs to happen.- Throws:
java.io.IOException
-
skip
public void skip(DataInputPlus in) throws java.io.IOException
- Specified by:
skipin interfaceISerializer<IndexInfo>- Throws:
java.io.IOException
-
deserialize
public IndexInfo deserialize(DataInputPlus in) throws java.io.IOException
Description copied from interface:ISerializerDeserialize from the specified DataInput instance.- Specified by:
deserializein interfaceISerializer<IndexInfo>- Parameters:
in- DataInput from which deserialization needs to happen.- Returns:
- the type that was deserialized
- Throws:
java.io.IOException
-
serializedSize
public long serializedSize(IndexInfo info)
- Specified by:
serializedSizein interfaceISerializer<IndexInfo>
-
-