VMware GemFire Native Client C++ API Reference
|
VMware VMware GemFire Native C++ Reference 10.4.3
|
Loading...
Searching...
No Matches
apache::geode::client::StringPrefixPartitionResolver Class Reference
This class implements a partition resolver which routing object is the prefix of a given key. More...
#include <StringPrefixPartitionResolver.hpp>
Inherits apache::geode::client::PartitionResolver.
Public Member Functions | |
| const std::string & | getName () override |
| Returns the name of the PartitionResolver. | |
| std::shared_ptr< CacheableKey > | getRoutingObject (const EntryEvent &opDetails) override |
Detailed Description
This class implements a partition resolver which routing object is the prefix of a given key.
Delimiter is set by default to '|', still can be changed.
- Note
- If prefix is not found in the key an IllegalArgumentException is thrown
Examples:
- Given key "key-1|timestamp", with delimiter '|', the routing object would be "key-1"
- Given "key-1#DELIM#timestamp", with delimiter '|', then an exception is thrown.
Member Function Documentation
◆ getName()
|
overridevirtual |
Returns the name of the PartitionResolver.
- Returns
- String name
Reimplemented from apache::geode::client::PartitionResolver.
◆ getRoutingObject()
|
overridevirtual |
- Parameters
-
opDetails the detail of the entry event
- Exceptions
-
RuntimeException - any exception thrown will terminate the operation and the exception will be passed to the calling thread.
- Returns
- object associated with entry event which allows the Partitioned Region to store associated data together
Implements apache::geode::client::PartitionResolver.
Apache Geode C++ Cache API Documentation