Create an Predicate Query Expression Node
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Predicate( _ ByVal pred As NetricsPredicate _ ) As NetricsQuery |
C# |
---|
public static NetricsQuery Predicate( NetricsPredicate pred ) |
C++ |
---|
public: static NetricsQuery Predicate( NetricsPredicate pred ) |
J# |
---|
public static NetricsQuery Predicate( NetricsPredicate pred ) |
JScript |
---|
public static
function Predicate( pred : NetricsPredicate ) : NetricsQuery |
Parameters
- pred
- the NetricsPredicate object to evaluate
Remarks
The predicate will be evaluated on the record and if it's true, the NetricsQuery will be given a score of 1.0. If it's false a 0.0 score is used. This is a simple comparison for use when other queries are both slower and more cumbersome (like a gender comparison). It can also be used when inexact matching is not required.
The value returned by the predicate expression must be either a boolean value or a floating point value in the range 0.0 to 1.0. If a floating point value is returned it is used as the score for this query expression.