VMware GemFire Native .NET Reference
9.2.4
|
An immutable wrapper for 64-bit integers that can serve as a distributable key object for caching. More...
Public Member Functions | |
CacheableInt64 () | |
* Allocates a new instance with the given value. More... | |
CacheableInt64 (System::Int64 value) | |
* Allocates a new instance with the given value. More... | |
virtual bool | Equals (ICacheableKey^ other) override |
Return true if this key matches other object. More... | |
virtual bool | Equals (Object^ obj) override |
Return true if this key matches other object. More... | |
virtual Apache::Geode::Client::IGeodeSerializable ^ | FromData (Apache::Geode::Client::DataInput^ input) |
Deserializes the native (C++) object – returns an instance of the Serializable class with the native object wrapped inside. More... | |
virtual System::Int32 | GetHashCode () override |
Return the hashcode for this key. More... | |
bool | operator== (System::Int64 other) |
Comparison operator against another value. More... | |
virtual void | ToData (Apache::Geode::Client::DataOutput^ output) |
Serializes this native (C++) object. More... | |
virtual String ^ | ToString () override |
Return a string representation of the object. More... | |
Static Public Member Functions | |
static CacheableInt64 ^ | Create (System::Int64 value) |
* Static function to create a new instance given value. More... | |
static IGeodeSerializable ^ | CreateDeserializable () |
* Factory function to register this class. More... | |
static | operator Apache::Geode::Client::Serializable^ (array< bool >^ value) |
Implicit conversion operator from an boolean array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< Byte >^ value) |
Implicit conversion operator from an array of bytes to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< Char >^ value) |
Implicit conversion operator from a character array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< Double >^ value) |
Implicit conversion operator from a double array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< Single >^ value) |
Implicit conversion operator from a float array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< String^>^ value) |
Implicit conversion operator from a string array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< System::Int16 >^ value) |
Implicit conversion operator from a 16-bit integer array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< System::Int32 >^ value) |
Implicit conversion operator from a 32-bit integer array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (array< System::Int64 >^ value) |
Implicit conversion operator from a 64-bit integer array to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (bool value) |
Implicit conversion operator from a boolean to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (Byte value) |
Implicit conversion operator from a byte to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (Char value) |
Implicit conversion operator from a character to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (Double value) |
Implicit conversion operator from a double to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (Single value) |
Implicit conversion operator from a float to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (String^ value) |
Implicit conversion operator from a string to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (System::Int16 value) |
Implicit conversion operator from a 16-bit integer to a Serializable . More... | |
static | operator Apache::Geode::Client::Serializable^ (System::Int32 value) |
Implicit conversion operator from a 32-bit integer to a Serializable . More... | |
static | operator CacheableKey^ (bool value) |
Implicit conversion operator from a boolean to a CacheableKey . More... | |
static | operator CacheableKey^ (Byte value) |
Implicit conversion operator from a byte to a CacheableKey . More... | |
static | operator CacheableKey^ (Char value) |
Implicit conversion operator from a character to a CacheableKey . More... | |
static | operator CacheableKey^ (Double value) |
Implicit conversion operator from a double to a CacheableKey . More... | |
static | operator CacheableKey^ (Single value) |
Implicit conversion operator from a float to a CacheableKey . More... | |
static | operator CacheableKey^ (String^ value) |
Implicit conversion operator from a string to a CacheableKey . More... | |
static | operator CacheableKey^ (System::Int16 value) |
Implicit conversion operator from a 16-bit integer to a CacheableKey . More... | |
static | operator CacheableKey^ (System::Int32 value) |
Implicit conversion operator from a 32-bit integer to a CacheableKey . More... | |
static | operator CacheableKey^ (System::Int64 value) |
Implicit conversion operator from a 64-bit integer to a CacheableKey . More... | |
static | operator Serializable^ (System::Int64 value) |
Implicit conversion operator from a 64-bit integer to a Serializable . More... | |
static | operator System::Int64 (CacheableInt64 ^ value) |
* Explicit conversion operator to contained value type. More... | |
static void | RegisterPdxSerializer (IPdxSerializer^ pdxSerializer) |
Set the PDX serializer for the cache. More... | |
static void | RegisterPdxType (PdxTypeFactoryMethod^ creationMethod) |
static void | RegisterTypeGeneric (TypeFactoryMethodGeneric^ creationMethod) |
Register an instance factory method for a given type. More... | |
static void | SetPdxTypeMapper (IPdxTypeMapper^ pdxTypeMapper) |
Register an PdxTypeMapper to map the local types to pdx types 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... | |
System::Int64 | Value [get] |
Gets the value. More... | |
An immutable wrapper for 64-bit integers that can serve as a distributable key object for caching.
|
inline |
* Allocates a new instance with the given value.
*
value | the value of the new instance |
|
inline |
* Allocates a new instance with the given value.
*
value | the value of the new instance |
|
inlinestatic |
* Static function to create a new instance given value.
*
value | the value of the new instance |
|
inlinestatic |
* Factory function to register this class.
|
inlineoverridevirtualinherited |
Return true if this key matches other object.
It invokes the '==' operator of the underlying native object.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
inlineoverridevirtualinherited |
Return true if this key matches other object.
It invokes the '==' operator of the underlying native object.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
virtualinherited |
Deserializes the native (C++) object – returns an instance of the Serializable
class with the native object wrapped inside.
input | the DataInput stream to use for reading the object data |
Implements Apache::Geode::Client::IGeodeSerializable.
Reimplemented 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::CacheableString, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::Internal::CacheableHashSetType< TYPEID, HSTYPE >, Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableLinkedHashSet, apache::geode::client::CacheableLinkedHashSet >, and Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableHashSet, apache::geode::client::CacheableHashSet >.
|
overridevirtualinherited |
Return the hashcode for this key.
It gets the hash code by calling the hashcode()
function of the underlying apache::geode::client::CacheableKey
object.
Implements Apache::Geode::Client::ICacheableKey.
Reimplemented in Apache::Geode::Client::CacheableString.
|
staticinherited |
Implicit conversion operator from an boolean array to a Serializable
.
|
staticinherited |
Implicit conversion operator from an array of bytes to a Serializable
.
|
staticinherited |
Implicit conversion operator from a character array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a double array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a float array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a string array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a 16-bit integer array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a 32-bit integer array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a 64-bit integer array to a Serializable
.
|
staticinherited |
Implicit conversion operator from a boolean to a Serializable
.
|
staticinherited |
Implicit conversion operator from a byte to a Serializable
.
|
staticinherited |
Implicit conversion operator from a character to a Serializable
.
|
staticinherited |
Implicit conversion operator from a double to a Serializable
.
|
staticinherited |
Implicit conversion operator from a float to a Serializable
.
|
staticinherited |
Implicit conversion operator from a string to a Serializable
.
|
staticinherited |
Implicit conversion operator from a 16-bit integer to a Serializable
.
|
staticinherited |
Implicit conversion operator from a 32-bit integer to a Serializable
.
|
staticinherited |
Implicit conversion operator from a boolean to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a byte to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a character to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a double to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a float to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a string to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 16-bit integer to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 32-bit integer to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 64-bit integer to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 64-bit integer to a Serializable
.
|
inlineexplicitstatic |
* Explicit conversion operator to contained value type.
|
inlineinherited |
Comparison operator against another value.
|
staticinherited |
Set the PDX serializer for the cache.
If this serializer is set, it will be consulted to see if it can serialize any domain classes which are added to the cache in portable data exchange format.
|
staticinherited |
Register an instance factory method for a given type. This should be used when registering types that implement IPdxSerializable.
creationMethod | the creation function to register |
IllegalArgumentException | if the method is null |
|
staticinherited |
Register an instance factory method for a given type.
This should be used when registering types that implement IGeodeSerializable.
creationMethod | the creation function to register |
IllegalArgumentException | if the method is null |
IllegalStateException | if the typeId has already been registered, or there is an error in registering the type; check Utils::LastError for more information in the latter case. |
|
staticinherited |
Register an PdxTypeMapper to map the local types to pdx types
pdxTypeMapper | Object which implements IPdxTypeMapper interface |
|
virtualinherited |
Serializes this native (C++) object.
output | the DataOutput object to use for serializing the object |
Implements Apache::Geode::Client::IGeodeSerializable.
Reimplemented 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::CacheableString, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::Internal::CacheableHashSetType< TYPEID, HSTYPE >, Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableLinkedHashSet, apache::geode::client::CacheableLinkedHashSet >, and Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableHashSet, apache::geode::client::CacheableHashSet >.
|
inlineoverridevirtualinherited |
Return a string representation of the object.
This returns the string for the Value
property.
Reimplemented from Apache::Geode::Client::Serializable.
|
getinherited |
Returns the classId of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
|
getinherited |
return the size of this object in bytes
|
getinherited |
Gets the value.