Package org.apache.cassandra.cache
Class SerializingCacheProvider.RowCacheSerializer
- java.lang.Object
-
- org.apache.cassandra.cache.SerializingCacheProvider.RowCacheSerializer
-
- All Implemented Interfaces:
IGenericSerializer<IRowCacheEntry,DataInputPlus,DataOutputPlus>,ISerializer<IRowCacheEntry>
- Enclosing class:
- SerializingCacheProvider
public static class SerializingCacheProvider.RowCacheSerializer extends java.lang.Object implements ISerializer<IRowCacheEntry>
-
-
Constructor Summary
Constructors Constructor Description RowCacheSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRowCacheEntrydeserialize(DataInputPlus in)Deserialize from the specified DataInput instance.voidserialize(IRowCacheEntry entry, DataOutputPlus out)Serialize the specified type into the specified DataOutput instance.longserializedSize(IRowCacheEntry entry)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.io.ISerializer
skip
-
-
-
-
Method Detail
-
serialize
public void serialize(IRowCacheEntry entry, DataOutputPlus out) throws java.io.IOException
Description copied from interface:ISerializerSerialize the specified type into the specified DataOutput instance.- Specified by:
serializein interfaceIGenericSerializer<IRowCacheEntry,DataInputPlus,DataOutputPlus>- Specified by:
serializein interfaceISerializer<IRowCacheEntry>- Parameters:
entry- type that needs to be serializedout- DataOutput into which serialization needs to happen.- Throws:
java.io.IOException
-
deserialize
public IRowCacheEntry deserialize(DataInputPlus in) throws java.io.IOException
Description copied from interface:ISerializerDeserialize from the specified DataInput instance.- Specified by:
deserializein interfaceIGenericSerializer<IRowCacheEntry,DataInputPlus,DataOutputPlus>- Specified by:
deserializein interfaceISerializer<IRowCacheEntry>- Parameters:
in- DataInput from which deserialization needs to happen.- Returns:
- the type that was deserialized
- Throws:
java.io.IOException
-
serializedSize
public long serializedSize(IRowCacheEntry entry)
- Specified by:
serializedSizein interfaceIGenericSerializer<IRowCacheEntry,DataInputPlus,DataOutputPlus>- Specified by:
serializedSizein interfaceISerializer<IRowCacheEntry>
-
-