Hazelcast C++ Client
 All Classes Functions Variables Enumerations Pages
Public Member Functions | List of all members
hazelcast::client::serialization::IdentifiedDataSerializable Class Referenceabstract

Classes that will be used with hazelcast data structures like IMap, IQueue etc should either inherit from one of the following classes : Portable , IdentifiedDataSerializable or it should be custom serializable. More...

#include <IdentifiedDataSerializable.h>

+ Inheritance diagram for hazelcast::client::serialization::IdentifiedDataSerializable:

Public Member Functions

virtual ~IdentifiedDataSerializable ()
 Destructor.
 
virtual int getFactoryId () const =0
 
virtual int getClassId () const =0
 
virtual void writeData (ObjectDataOutput &writer) const =0
 Defines how this class will be written. More...
 
virtual void readData (ObjectDataInput &reader)=0
 Defines how this class will be read. More...
 
virtual int getSerializerId () const
 Not public api. More...
 

Detailed Description

Classes that will be used with hazelcast data structures like IMap, IQueue etc should either inherit from one of the following classes : Portable , IdentifiedDataSerializable or it should be custom serializable.

For custom serializable see Serializer

Note that: factoryId and classId of the same class in server side should be consistent with each other.

See Also
Portable

Member Function Documentation

virtual int hazelcast::client::serialization::IdentifiedDataSerializable::getClassId ( ) const
pure virtual
Returns
class id

Implemented in hazelcast::client::query::SqlPredicate.

virtual int hazelcast::client::serialization::IdentifiedDataSerializable::getFactoryId ( ) const
pure virtual
Returns
factory id

Implemented in hazelcast::client::query::SqlPredicate.

int hazelcast::client::serialization::IdentifiedDataSerializable::getSerializerId ( ) const
virtual

Not public api.

Do not override this method.

Returns
serializer id
virtual void hazelcast::client::serialization::IdentifiedDataSerializable::readData ( ObjectDataInput reader)
pure virtual

Defines how this class will be read.

Parameters
readerObjectDataInput

Implemented in hazelcast::client::query::SqlPredicate.

virtual void hazelcast::client::serialization::IdentifiedDataSerializable::writeData ( ObjectDataOutput writer) const
pure virtual

Defines how this class will be written.

Parameters
writerObjectDataOutput

Implemented in hazelcast::client::query::SqlPredicate.


The documentation for this class was generated from the following files: