VMware GemFire Native Client .NET Framework API Reference
|
VMware VMware GemFire Native .NET Reference 10.4.3
|
An immutable date wrapper that can serve as a distributable key object for caching as well as being a string value. More...
#include <CacheableDate.hpp>
Inherits Apache::Geode::Client::ICacheableKey, and Apache::Geode::Client::IDataSerializablePrimitive.
Public Member Functions | |
| CacheableDate () | |
| Allocates a new default instance. | |
| CacheableDate (DateTime dateTime) | |
Initializes a new instance of the CacheableDate to the given System.DateTime value. | |
| virtual bool | Equals (ICacheableKey^ other) |
| Return true if this key matches other object. | |
| virtual bool | Equals (Object^ obj) override |
| Return true if this key matches other object. | |
| virtual void | FromData (DataInput^ input) |
| Deserialize this object, typical implementation should return the 'this' pointer. | |
| virtual System::Int32 | GetHashCode () override |
| Return the hashcode for this key. | |
| virtual void | ToData (DataOutput^ output) |
| Serializes this object. | |
| virtual String ^ | ToString () override |
| Return a string representation of the object. | |
Static Public Member Functions | |
| static CacheableDate ^ | Create () |
| Static function that returns a new default instance. | |
| static CacheableDate ^ | Create (DateTime dateTime) |
Static function that returns a new instance initialized to the given System.DateTime value. | |
| static ISerializable ^ | CreateDeserializable () |
| Factory function to register this class. | |
Static Public Attributes | |
| static initonly DateTime | EpochTime |
DataTime value since 1/1/1970 | |
Properties | |
| int8_t | DsCode [get] |
| Returns the classId of the instance being serialized. | |
| virtual System::UInt64 | ObjectSize [get] |
| return the size of this object in bytes | |
| DateTime | Value [get] |
Gets the System.DateTime value. | |
Detailed Description
An immutable date wrapper that can serve as a distributable key object for caching as well as being a string value.
Constructor & Destructor Documentation
◆ CacheableDate() [1/2]
|
inline |
Allocates a new default instance.
◆ CacheableDate() [2/2]
| Apache::Geode::Client::CacheableDate::CacheableDate | ( | DateTime | dateTime | ) |
Initializes a new instance of the CacheableDate to the given System.DateTime value.
- Parameters
-
dateTime A System.DateTimevalue to initialize this instance.
Member Function Documentation
◆ Create() [1/2]
|
inlinestatic |
Static function that returns a new default instance.
◆ Create() [2/2]
|
inlinestatic |
Static function that returns a new instance initialized to the given System.DateTime value.
◆ CreateDeserializable()
|
inlinestatic |
Factory function to register this class.
◆ Equals() [1/2]
|
virtual |
Return true if this key matches other object.
Implements Apache::Geode::Client::ICacheableKey.
◆ Equals() [2/2]
|
overridevirtual |
Return true if this key matches other object.
◆ FromData()
|
virtual |
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
◆ GetHashCode()
|
overridevirtual |
Return the hashcode for this key.
Implements Apache::Geode::Client::ICacheableKey.
◆ ToData()
|
virtual |
Serializes this object.
- Parameters
-
output the DataOutput object to use for serializing the object
◆ ToString()
|
overridevirtual |
Return a string representation of the object.
Implements Apache::Geode::Client::ISerializable.
Field Documentation
◆ EpochTime
|
staticinitonly |
DataTime value since 1/1/1970
Property Documentation
◆ DsCode
|
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
|
get |
return the size of this object in bytes
return the size of this object in bytes
◆ Value
|
get |
Gets the System.DateTime value.
Apache Geode C++ Cache .NET API Documentation