A FilterCompare is a type of IFilter
that performs a value comparison.
Namespace: Endeca.Navigation.AnalyticsAssembly: Endeca.Navigation (in Endeca.Navigation.dll) Version: 6.3.0.0 (6.3.0.853)
Syntax
C# |
---|
public class FilterCompare : IFilter, IQueryNode |
Visual Basic |
---|
Public Class FilterCompare _ Implements IFilter, IQueryNode |
Visual C++ |
---|
public ref class FilterCompare : IFilter, IQueryNode |
Remarks
After being created, the FilterCompare object
is then set in a Statement object with the
HavingFilter or WhereFilter
methods.
A FilterCompare can also be used to determine if the value of an Endeca property or dimension is null or non-null.
Examples
A typical use of this class is to compare the
value of an Endeca property or dimension to a
specified literal value. This can be considered
as a programmatic equivalent of the SQL HAVING
and WHERE clauses. For example, this
text-based syntax snippet:
can be expressed programmatically as:
CopyC#
RETURN Reps AS
WHERE Region = 'West'
CopyC#
Statement reps = new Statement(); reps.Name = "Reps"; FilterCompare whFilter = new FilterCompare("Region", FilterCompare.EQ, "West"); reps.WhereFilter = whFilter;