Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.1.0)

E69640-01

ComparisonFilter Class Reference

#include <coherence/util/filter/ComparisonFilter.hpp>

Inherits ExtractorFilter.

Inherited by LikeFilter.

List of all members.


Detailed Description

Filter which compares the result of a method invocation with a value.

Author:
djl 2008.03.02

Public Types

typedef spec::Handle Handle
 ComparisonFilter Handle definition.
typedef spec::View View
 ComparisonFilter View definition.
typedef spec::Holder Holder
 ComparisonFilter Holder definition.

Public Member Functions

virtual void readExternal (PofReader::Handle hIn)
 
virtual void writeExternal (PofWriter::Handle hOut) const
 
virtual bool equals (Object::View v) const
 
virtual size32_t hashCode () const
 
virtual TypedHandle
< const String > 
toString () const
 
virtual Object::View getValue () const
 Get the object to compare the reflection result with.

Static Public Member Functions

static int32_t calculateIteratorEffectiveness (int32_t cKeys)
 Helper method to calculate effectiveness (or rather ineffectiveness) of a simple iteration against a key set that has to be performed due to an absence of corresponding index.

Protected Member Functions

 ComparisonFilter ()
 Default constructor (necessary for the ExternalizableLite interface).
 ComparisonFilter (ValueExtractor::View vValueExtractor, Object::View vObject)
 Construct a ComparisonFilter.
virtual int32_t calculateMatchEffectiveness (Map::View vMapIndexes, Set::View vSetKeys) const
 Helper method to calculate effectiveness for ComparisonFilters that need no more than a single index match in order to retrieve all necessary keys to perform the applyIndex() operation.
virtual int32_t calculateRangeEffectiveness (Map::View vMapIndexes, Set::View vSetKeys) const
 Helper method to calculate effectiveness for ComparisonFilters that need a range of values from an index in order to retrieve all necessary keys to perform the applyIndex() operation.

Protected Attributes

FinalView< Object > f_vValue
 The value to compare to.

Constructor & Destructor Documentation

ComparisonFilter ( ValueExtractor::View  vValueExtractor,
Object::View  vObject 
) [protected]

Construct a ComparisonFilter.

Parameters:
vExtractor the ComparisonFilter to use by this filter
vObject the object to compare the result with


Member Function Documentation

virtual int32_t calculateMatchEffectiveness ( Map::View  vMapIndexes,
Set::View  vSetKeys 
) const [protected, virtual]

Helper method to calculate effectiveness for ComparisonFilters that need no more than a single index match in order to retrieve all necessary keys to perform the applyIndex() operation.

Such filters are: Contains, Equals, NotEquals.

Parameters:
vMapIndexes the available MapIndex objects keyed by the related ValueExtractor; read-only
vSetKeys the set of keys that will be filtered; read-only
Returns:
an effectiveness estimate of how well this filter can use the specified indexes to filter the specified keys

virtual int32_t calculateRangeEffectiveness ( Map::View  vMapIndexes,
Set::View  vSetKeys 
) const [protected, virtual]

Helper method to calculate effectiveness for ComparisonFilters that need a range of values from an index in order to retrieve all necessary keys to perform the applyIndex() operation.

Such filters are: Less, LessEquals, Greater, GreaterEquals.

Parameters:
vMapIndexes the available MapIndex objects keyed by the related ValueExtractor; read-only
vSetKeys the set of keys that will be filtered; read-only
Returns:
an effectiveness estimate of how well this filter can use the specified indexes to filter the specified keys

static int32_t calculateIteratorEffectiveness ( int32_t  cKeys  )  [static]

Helper method to calculate effectiveness (or rather ineffectiveness) of a simple iteration against a key set that has to be performed due to an absence of corresponding index.

Parameters:
cKeys the number of keys to iterate through

virtual Object::View getValue (  )  const [virtual]

Get the object to compare the reflection result with.

Returns:
the object to compare the reflection result with


The documentation for this class was generated from the following file:
Copyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.