E22844-03
Assembly: Coherence (in Coherence.dll) Version: 3.7.1.23 (3.7.1.23)
Syntax
| C# |
|---|
public class ComparisonValueExtractor : AbstractCompositeExtractor |
Remarks
In a most general case, the extracted value represents an integer
value calculated accordingly to the contract of
For example, lets assume that a cache contains business objects that have two properties: SellPrice and BuyPrice (both double). Then, to query for all objects that have SellPrice less than BuyPrice we would use the following:
ValueExtractor extractDiff = new ComparisonValueExtractor( new ReflectionExtractor("SellPrice"), new ReflectionExtractor("BuyPrice")); Filter filter = new LessFilter(extractDiff, 0.0); ICollection entries = cache.GetEntries(filter);
Inheritance Hierarchy
Tangosol.Util.Extractor..::.AbstractExtractor
Tangosol.Util.Extractor..::.AbstractCompositeExtractor
Tangosol.Util.Extractor..::.ComparisonValueExtractor