Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net.cache
Interface KeyAssociation

All Known Implementing Classes:
  CompositeKey

    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
`java.lang.Object` | `getAssociatedKey()` Determine the key object to which this key object is associated.

Method Detail

### getAssociatedKey

    java.lang.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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.