Value extractors
As you can see from the previous examples, a query is typically expressed in terms of object attributes, such as accountId
or time
, while the evaluate
method defined by the Filter
interface accepts a whole object that the attributes belong to, such as a Transaction
instance.
That implies that we need a generic way to extract attribute values from an object instance—otherwise, there would be no way to define reusable filters, such as the ones in the table earlier that ship with Coherence, and we would be forced to implement a custom filter for each query we need to execute. In order to solve this problem and enable extraction of attribute values from an object, Coherence introduces value extractors.
A value extractor is an object ...
Get Oracle Coherence 3.5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.