IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.continuousquery.filter
Interface FilterContent<KeyType,ValueType>

Type Parameters:
KeyType - Type of the key object for the map being queried
ValueType - Type of the value object for the map being queried

public interface FilterContent<KeyType,ValueType>

A wrapper for cache entry objects which is passed to each ContinuousQueryFilter associated with a continuous query. The wrapper contains the key and value for the cache entry that needs to be processed by the filter.

Since:
8.6

Method Summary
 KeyType getKey()
          Retrieves the key of the object to be filtered.
 ValueType getValue()
          Retrieves the value of the object to be filtered.
 

Method Detail

getKey

KeyType getKey()
Retrieves the key of the object to be filtered.

For maps using standard java serialization or a custom ObjectTransformer the return type of this method will be the key object.

For eXtreme Data Format maps and maps with a custom MapSerializerPlugin the return value of this method is a SerializedKey. The SerializedKey allows access to the key in its serialized form, or its native Java object form.

Returns:
the key or SerializedKey

getValue

ValueType getValue()
Retrieves the value of the object to be filtered.

For maps using standard java serialization or a custom ObjectTransformer the return type of this method will be the value object.

For eXtreme Data Format maps and maps with a custom MapSerializerPlugin the return value of this method is a SerializedValue. The SerializedValue allows access to the key in its serialized form, or its native Java object form.

Returns:
the value or SerializedValue

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.