GemStone::GemFire::Cache::CacheableHashTable Class Reference

Inherits GemStone::GemFire::Cache::CacheableHashMap.


Detailed Description

A mutable ICacheableKey to IGFSerializable hash table that can serve as a distributable object for caching. This class extends .NET generic Dictionary class.

Public Member Functions

 CacheableHashTable (Int32 capacity)
 CacheableHashTable (IDictionary< ICacheableKey^ , IGFSerializable^ >^dictionary)
 CacheableHashTable ()
virtual IGFSerializableFromData (DataInput^ input)
virtual void ToData (DataOutput^ output)
String^ ToString ()

Properties

virtual UInt32 ClassId [get]
virtual UInt32 ObjectSize [get]

Constructor & Destructor Documentation

GemStone::GemFire::Cache::CacheableHashTable::CacheableHashTable (  )  [inline]

Allocates a new empty instance.

GemStone::GemFire::Cache::CacheableHashTable::CacheableHashTable ( IDictionary< ICacheableKey^ , IGFSerializable^ >^  dictionary  )  [inline]

Allocates a new instance copying from the given dictionary.

Parameters:
dictionary The dictionary whose elements are copied to this HashTable.

GemStone::GemFire::Cache::CacheableHashTable::CacheableHashTable ( Int32  capacity  )  [inline]

Allocates a new empty instance with given initial size.

Parameters:
capacity The initial capacity of the HashTable.


Member Function Documentation

virtual IGFSerializable ^ GemStone::GemFire::Cache::CacheableHashMap::FromData ( DataInput^   input  )  [virtual, inherited]

Deserialize this object, typical implementation should return the 'this' pointer.

Parameters:
input the DataInput stream to use for reading the object data
Returns:
the deserialized object

Implements GemStone::GemFire::Cache::IGFSerializable.

virtual void GemStone::GemFire::Cache::CacheableHashMap::ToData ( DataOutput^   output  )  [virtual, inherited]

Serializes this object.

Parameters:
output the DataOutput object to use for serializing the object

Implements GemStone::GemFire::Cache::IGFSerializable.

String ^ GemStone::GemFire::Cache::IGFSerializable::ToString (  )  [inherited]

Return a string representation of the object.

Implemented in GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< TNative, TManaged, TYPEID >, GemStone::GemFire::Cache::CacheableDate, GemStone::GemFire::Cache::CacheableFileName, GemStone::GemFire::Cache::CacheableObject, GemStone::GemFire::Cache::CacheableObjectXml, GemStone::GemFire::Cache::CacheableString, GemStone::GemFire::Cache::Properties, GemStone::GemFire::Cache::Serializable, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableFloat, Single, GemFireClassIds::CacheableFloat >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableInt64, Int64, GemFireClassIds::CacheableInt64 >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableByte, Byte, GemFireClassIds::CacheableByte >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableWideChar, Char, GemFireClassIds::CacheableCharacter >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableInt16, Int16, GemFireClassIds::CacheableInt16 >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableDouble, Double, GemFireClassIds::CacheableDouble >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableInt32, Int32, GemFireClassIds::CacheableInt32 >, and GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableBoolean, Boolean, GemFireClassIds::CacheableBoolean >.


Property Documentation

virtual UInt32 GemStone::GemFire::Cache::CacheableHashTable::ClassId [get]

Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.

Returns:
the classId

Reimplemented from GemStone::GemFire::Cache::CacheableHashMap.

virtual UInt32 GemStone::GemFire::Cache::CacheableHashMap::ObjectSize [get, inherited]

return the size of this object in bytes

Implements GemStone::GemFire::Cache::IGFSerializable.


GemFire C++ Cache .NET API Documentation