VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Implements an immutable wrapper for filenames that can serve as a distributable filename object for caching as both key and value. More...
Inherits apache::geode::client::CacheableString.
Public Member Functions | |
virtual int32_t | hashcode () const override |
return the hashcode for this key. More... | |
std::string::size_type | length () const |
Return the length of the contained string. More... | |
virtual size_t | objectSize () const override |
return the size in bytes of the instance being serialized. More... | |
virtual bool | operator== (const CacheableKey &other) const override |
return true if this key matches other. More... | |
virtual std::string | toString () const override |
Display this object as 'string', which depends on the implementation in the subclasses. More... | |
Static Public Member Functions | |
template<class _T > | |
static std::shared_ptr< CacheableKey > | create (_T value) |
Factory method that creates the key type that matches the type of value. More... | |
static std::shared_ptr< CacheableFileName > | create (const std::string &value) |
Factory method for creating an instance of CacheableFileName from a C string optionally given the length. More... | |
static std::shared_ptr< Serializable > | createDeserializable () |
creation function for filenames. More... | |
static std::shared_ptr< Serializable > | createDeserializableHuge () |
creation function for strings > 64K length More... | |
static std::shared_ptr< Serializable > | createUTFDeserializable () |
creation function for wide strings More... | |
static std::shared_ptr< Serializable > | createUTFDeserializableHuge () |
creation function for wide strings > 64K length in UTF8 encoding More... | |
Implements an immutable wrapper for filenames that can serve as a distributable filename object for caching as both key and value.
|
staticinherited |
Factory method that creates the key type that matches the type of value.
For user defined derivations of CacheableKey, the method apache::geode::client::CacheableKey::create may be overloaded.
|
inlinestatic |
Factory method for creating an instance of CacheableFileName from a C string optionally given the length.
|
inlinestatic |
creation function for filenames.
|
staticinherited |
creation function for strings > 64K length
|
staticinherited |
creation function for wide strings
|
staticinherited |
creation function for wide strings > 64K length in UTF8 encoding
|
overridevirtual |
return the hashcode for this key.
Reimplemented from apache::geode::client::CacheableString.
|
inlineinherited |
Return the length of the contained string.
|
overridevirtualinherited |
return the size in bytes of the instance being serialized.
This is used to determine whether the cache is using up more physical memory than it has been configured to use. The method can return zero if the user does not require the ability to control cache memory utilization. Note that you must implement this only if you use the HeapLRU feature.
Reimplemented from apache::geode::client::Serializable.
|
overridevirtualinherited |
return true if this key matches other.
Implements apache::geode::client::CacheableKey.
|
overridevirtualinherited |
Display this object as 'string', which depends on the implementation in the subclasses.
The default implementation renders the classname.
Reimplemented from apache::geode::client::Serializable.