Package org.apache.cassandra.io.sstable
Class IndexInfo.Serializer
- java.lang.Object
-
- org.apache.cassandra.io.sstable.IndexInfo.Serializer
-
- All Implemented Interfaces:
IGenericSerializer<IndexInfo,DataInputPlus,DataOutputPlus>
,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 long
WIDTH_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 IndexInfo
deserialize(DataInputPlus in)
Deserialize from the specified DataInput instance.void
serialize(IndexInfo info, DataOutputPlus out)
Serialize the specified type into the specified DataOutput instance.long
serializedSize(IndexInfo info)
void
skip(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:ISerializer
Serialize the specified type into the specified DataOutput instance.- Specified by:
serialize
in interfaceIGenericSerializer<IndexInfo,DataInputPlus,DataOutputPlus>
- Specified by:
serialize
in 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:
skip
in interfaceISerializer<IndexInfo>
- Throws:
java.io.IOException
-
deserialize
public IndexInfo deserialize(DataInputPlus in) throws java.io.IOException
Description copied from interface:ISerializer
Deserialize from the specified DataInput instance.- Specified by:
deserialize
in interfaceIGenericSerializer<IndexInfo,DataInputPlus,DataOutputPlus>
- Specified by:
deserialize
in 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:
serializedSize
in interfaceIGenericSerializer<IndexInfo,DataInputPlus,DataOutputPlus>
- Specified by:
serializedSize
in interfaceISerializer<IndexInfo>
-
-