CoherenceTM v3.1.3
Copyright© 2000-2006 by Tangosol, Inc.

com.tangosol.net.cache
Interface KeyAssociation


public interface KeyAssociation

A KeyAssociation represents a key object that has a natural association with another key object. 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.

Since:
Coherence 3.0

Method Summary
 Object getAssociatedKey()
          Determine the key object to which this key object is associated.
 

Method Detail

getAssociatedKey

Object getAssociatedKey()
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.

Returns:
the host key that for this key object, or null if this key has no association

CoherenceTM v3.1.3
Copyright© 2000-2006 by Tangosol, Inc.