#include <coherence/net/cache/KeyAssociation.hpp>
Inherits Object.
Inherited by CompositeKey [virtual]
.
The key object and the associated key may refer to entries in the same or different caches.
For example, the information provided by a key that implements KeyAssociation may be used to place the key into the same partition as its associated key.
See KeyAssociatedFilter for an example of a distributed query that takes advantage of a custom KeyAssociation implementation to dramatically optimize its performance.
Public Types | |
typedef spec::Handle | Handle |
KeyAssociation Handle definition. | |
typedef spec::View | View |
KeyAssociation View definition. | |
typedef spec::Holder | Holder |
KeyAssociation Holder definition. | |
Public Member Functions | |
virtual Object::View | getAssociatedKey () const =0 |
Determine the key object to which this key object is associated. |
virtual Object::View getAssociatedKey | ( | ) | const [pure virtual] |
Determine the key object to which this key object is associated.
The key object returned by this method is often referred to as a host key.
NULL
if this key has no association. Implemented in CompositeKey.