A FilterCompare is a type of IFilter that performs a value comparison.

Namespace: Endeca.Navigation.Analytics
Assembly: Endeca.Navigation (in Endeca.Navigation.dll) Version: 6.2.0.0 (6.2.2.8614)

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:
CopyC#
RETURN Reps AS
WHERE Region = 'West'
can be expressed programmatically as:
CopyC#
Statement reps = new Statement();
reps.Name = "Reps";
FilterCompare whFilter = new FilterCompare("Region", FilterCompare.EQ, "West");
reps.WhereFilter = whFilter;

Inheritance Hierarchy

System..::..Object
  Endeca.Navigation.Analytics..::..FilterCompare

See Also