Show / Hide Table of Contents

Interface IKeyAssociation

A KeyAssociation represents a key object that has a natural association with another key object.

Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public interface IKeyAssociation
Remarks

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 IKeyAssociation 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 IKeyAssociation implementation to dramatically optimize its performance.

Properties

AssociatedKey

Determine the key object to which this key object is associated.

Declaration
object AssociatedKey { get; }
Property Value
Type Description
object

The host key that for this key object, or null if this key has no association.

Remarks

The key object returned by this method is often referred to as a host key.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.