VMware GemFire Native .NET Reference
9.2.4
|
An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value. More...
Inherits Apache::Geode::Client::CacheableKey.
Public Member Functions | |
CacheableString (array< Char >^ value) | |
Allocates a new instance copying from the given character array. More... | |
CacheableString (String^ value) | |
Allocates a new instance copying from the given string. More... | |
virtual bool | Equals (Apache::Geode::Client::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 IGeodeSerializable ^ | FromData (DataInput^ input) override |
Deserializes the managed object – returns an instance of the IGeodeSerializable class. More... | |
virtual System::Int32 | GetHashCode () override |
Return the hashcode for this key. More... | |
virtual void | ToData (DataOutput^ output) override |
Serializes this managed object. More... | |
virtual String ^ | ToString () override |
Return a string representation of the object. More... | |
Static Public Member Functions | |
static CacheableString ^ | Create (array< Char >^ value) |
Static function to create a new instance copying from the given character array. More... | |
static CacheableString ^ | Create (String^ value) |
Static function to create a new instance copying from the given string. More... | |
static bool | IsNullOrEmpty (CacheableString^ value) |
Static function to check whether IsNullOrEmpty. 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 String ^ (CacheableString^ str) |
Implicit conversion operator to underlying System.String . 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... | |
bool | IsWideString [get] |
True when the underlying C string is a wide-character string. More... | |
System::UInt32 | Length [get] |
Gets the length of the underlying C string. More... | |
virtual System::UInt32 | ObjectSize [get] |
return the size of this object in bytes More... | |
String^ | Value [get] |
Gets the string value. More... | |
An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value.
Apache::Geode::Client::CacheableString::CacheableString | ( | String^ | value | ) |
Allocates a new instance copying from the given string.
value | the string value of the new instance |
IllegalArgumentException | if the provided string is null or has zero length |
Apache::Geode::Client::CacheableString::CacheableString | ( | array< Char >^ | value | ) |
Allocates a new instance copying from the given character array.
value | the character array value of the new instance |
IllegalArgumentException | if the provided array is null or has zero length |
|
inlinestatic |
Static function to create a new instance copying from the given character array.
Providing a null or zero size character array will return a null CacheableString
object.
value | the character array value of the new instance |
|
inlinestatic |
Static function to create a new instance copying from the given string.
Providing a null or zero size string will return a null CacheableString
object.
value | the string value of the new instance |
|
overridevirtual |
Return true if this key matches other object.
It invokes the '==' operator of the underlying apache::geode::client::CacheableString
object.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
overridevirtual |
Return true if this key matches other object.
It invokes the '==' operator of the underlying apache::geode::client::CacheableString
object.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
overridevirtual |
Deserializes the managed object – returns an instance of the IGeodeSerializable
class.
input | the DataInput stream to use for reading the object data |
Reimplemented from Apache::Geode::Client::Serializable.
|
overridevirtual |
Return the hashcode for this key.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
inlinestatic |
Static function to check whether IsNullOrEmpty.
This is similar to the C# string.IsNullOrEmpty method.
value | the CacheableString value to check |
|
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
.
|
inlinestatic |
Implicit conversion operator to underlying System.String
.
|
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 |
|
overridevirtual |
Serializes this managed object.
output | the DataOutput object to use for serializing the object |
Reimplemented from Apache::Geode::Client::Serializable.
|
inlineoverridevirtual |
Return a string representation of the object.
This returns the same string as Value
property.
Reimplemented from Apache::Geode::Client::Serializable.
|
get |
Returns the classId of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
|
get |
True when the underlying C string is a wide-character string.
|
get |
Gets the length of the underlying C string.
|
get |
return the size of this object in bytes
|
get |
Gets the string value.