VMware GemFire Native .NET Reference  9.2.4
Apache::Geode::Client::CacheableHashTable Class Reference

A mutable ICacheableKey to IGeodeSerializable hash table that can serve as a distributable object for caching. More...

Inherits Apache::Geode::Client::CacheableHashMap.

Public Member Functions

 CacheableHashTable ()
 Allocates a new empty instance. More...
 
 CacheableHashTable (Object^ dictionary)
 Allocates a new instance copying from the given dictionary. More...
 
 CacheableHashTable (System::Int32 capacity)
 Allocates a new empty instance with given initial size. More...
 
virtual IGeodeSerializableFromData (DataInput^ input) override
 Deserialize this object, typical implementation should return the 'this' pointer. More...
 
virtual void ToData (DataOutput^ output)
 Serializes this object. More...
 
String ^ ToString ()
 Return a string representation of the object. More...
 

Static Public Member Functions

static CacheableHashMapCreate ()
 Static function to create a new empty instance. More...
 
static IGeodeSerializableCreateDeserializable ()
 Factory function to register this class. More...
 

Properties

virtual System::UInt32 ClassId [get]
 Returns the classId of the instance being serialized. More...
 
virtual System::UInt32 ObjectSize [get]
 return the size of this object in bytes More...
 

Detailed Description

A mutable ICacheableKey to IGeodeSerializable hash table that can serve as a distributable object for caching.

This class extends .NET generic Dictionary class.

Constructor & Destructor Documentation

◆ CacheableHashTable() [1/3]

Apache::Geode::Client::CacheableHashTable::CacheableHashTable ( )
inline

Allocates a new empty instance.

◆ CacheableHashTable() [2/3]

Apache::Geode::Client::CacheableHashTable::CacheableHashTable ( Object^  dictionary)
inline

Allocates a new instance copying from the given dictionary.

Parameters
dictionaryThe dictionary whose elements are copied to this HashTable.

◆ CacheableHashTable() [3/3]

Apache::Geode::Client::CacheableHashTable::CacheableHashTable ( System::Int32  capacity)
inline

Allocates a new empty instance with given initial size.

Parameters
capacityThe initial capacity of the HashTable.

Member Function Documentation

◆ Create()

static CacheableHashMap ^ Apache::Geode::Client::CacheableHashMap::Create ( )
inlinestaticinherited

Static function to create a new empty instance.

◆ CreateDeserializable()

static IGeodeSerializable ^ Apache::Geode::Client::CacheableHashTable::CreateDeserializable ( )
inlinestatic

Factory function to register this class.

◆ FromData()

virtual IGeodeSerializable ^ Apache::Geode::Client::CacheableHashTable::FromData ( DataInput input)
inlineoverridevirtual

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

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

Reimplemented from Apache::Geode::Client::CacheableHashMap.

◆ ToData()

virtual void Apache::Geode::Client::CacheableHashMap::ToData ( DataOutput output)
virtualinherited

Serializes this object.

Parameters
outputthe DataOutput object to use for serializing the object

Implements Apache::Geode::Client::IGeodeSerializable.

◆ ToString()

String ^ Apache::Geode::Client::IGeodeSerializable::ToString ( )
inherited

Return a string representation of the object.

Implemented in Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt32Array, apache::geode::client::CacheableInt32ArrayPtr, System::Int32, GeodeClassIds::CacheableInt32Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableDoubleArray, apache::geode::client::CacheableDoubleArrayPtr, Double, GeodeClassIds::CacheableDoubleArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt16Array, apache::geode::client::CacheableInt16ArrayPtr, System::Int16, GeodeClassIds::CacheableInt16Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableBytes, apache::geode::client::CacheableBytesPtr, Byte, GeodeClassIds::CacheableBytes >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CharArray, apache::geode::client::CharArrayPtr, Char, GeodeClassIds::CharArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableFloatArray, apache::geode::client::CacheableFloatArrayPtr, Single, GeodeClassIds::CacheableFloatArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::BooleanArray, apache::geode::client::BooleanArrayPtr, bool, GeodeClassIds::BooleanArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt64Array, apache::geode::client::CacheableInt64ArrayPtr, System::Int64, GeodeClassIds::CacheableInt64Array >, Apache::Geode::Client::Properties< TPropKey, TPropValue >, Apache::Geode::Client::Properties< String^, String^>, Apache::Geode::Client::CacheableString, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::Serializable, Apache::Geode::Client::CacheableObjectXml, Apache::Geode::Client::CacheableObject, Apache::Geode::Client::CacheableDate, Apache::Geode::Client::CacheableFileName, Apache::Geode::Client::CacheableBuiltinKey< TNative, TManaged, TYPEID >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableFloat, Single, GeodeClassIds::CacheableFloat >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableInt32, System::Int32, GeodeClassIds::CacheableInt32 >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableDouble, Double, GeodeClassIds::CacheableDouble >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableBoolean, bool, GeodeClassIds::CacheableBoolean >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableInt64, System::Int64, GeodeClassIds::CacheableInt64 >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableInt16, System::Int16, GeodeClassIds::CacheableInt16 >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableWideChar, Char, GeodeClassIds::CacheableCharacter >, and Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableByte, Byte, GeodeClassIds::CacheableByte >.

Property Documentation

◆ ClassId

virtual System:: UInt32 Apache::Geode::Client::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

◆ ObjectSize

virtual System:: UInt32 Apache::Geode::Client::CacheableHashMap::ObjectSize
getinherited

return the size of this object in bytes


VMware GemFire .NET Cache API Documentation