public class NetricsPredicate
extends java.lang.Object
NetricsSearchCfg tblcfg = new NetricsSearchCfg("tbl");
NetricsPredicate pred1 = tblcfg.CreateStringOperand("Pepsi");
NetricsPredicate pred2 = tblcfg.CreateFieldNameOperand("Company");
NetricsPredicate pred3 = tblcfg.CreatePredicate(pred1,0,pred2);
tblcfg.SetSearchPredicate(pred3);
NetricsSearchCfg tblcfg = new NetricsSearchCfg("tbl");
NetricsPredicate pred1 = tblcfg.CreateStringOperand("Pepsi");
NetricsPredicate pred2 = tblcfg.CreateFieldNameOperand("Company");
// create the pepsi predicate as before
NetricsPredicate pred3 = tblcfg.CreatePredicate(pred1,NetricsPredicate.EQUALS,pred2);
NetricsPredicate pred4 = tblcfg.CreatePredicate("Coke");
// create the coke predicate
NetricsPredicate pred5 = tblcfg.CreatePredicate(pred2,NetricsPredicate.EQUALS,pred4);
// combine the two predicates
NetricsPredicate pred6 = tblcfg.CreatePredicate(pred3,NetricsPredicate.OR,pred5);
tblcfg.SetSearchPredicate(pred6);
Modifier and Type | Field and Description |
---|---|
static int |
ABS
return the absolute value of a double or integer.
|
static int |
AND
return true if both left and right evaluate to true.
|
static int |
DIVIDEDBY
divide left by right.
|
static int |
EQUALS
Check for equality of raw data
|
static int |
GREATERTHAN
check if left greater than right.
|
static int |
GREATERTHANOREQ
check if left greater than or equal to right.
|
static int |
INSEN_EQUALS
Check for equality ignoring letter case and diacritics
|
static int |
INSEN_GREATERTHAN
check if left > than right ignoring letter case and diacritics.
|
static int |
INSEN_GREATERTHANOREQ
check if left >= right ignoring letter case and diacritics.
|
static int |
INSEN_ISIN
letter case insensitive version of ISIN operator.
|
static int |
INSEN_LESSTHAN
check if left less than right ignoring letter case and diacritics.
|
static int |
INSEN_LESSTHANOREQ
check of left <= right ignoring letter case and diacritics.
|
static int |
ISIN
return true if left string is a substring of right string.
|
static int |
LESSTHAN
check if left side less than right side
|
static int |
LESSTHANOREQ
check if left less than or equal to right side.
|
static int |
MINUS
subtract left from right, or negate value.
|
static int |
NOT
logical inversion.
|
static int |
OR
return true if either left or right evaluate to true.
|
static int |
PLUS
add left to right, concatinate if both are strings.
|
static int |
SUBSET
return true if all strings in block array on left are in block array on right.
|
static int |
SUPERSET
return true if block array on left contains all strings in block array on right.
|
static int |
TIMES
multiply left and right.
|
static int |
TOBLK
convert a value to a character block.
|
static int |
TODATE
convert value to date.
|
static int |
TODATEEU
convert value to date assuming it is in European dd/mm/yyyy format.
|
static int |
TODATEEUT
convert a value to date and time assuming it is in European format.
|
static int |
TODATET
convert a value to date and time.
|
static int |
TODBL
convert value to Double (Float).
|
static int |
TOINT
convert value to integer.
|
static int |
TOKENIZE
split a string into tokens, returning a block array.
|
static int |
TOTHE
raise left to the power of right.
|
public static final int EQUALS
public static final int INSEN_EQUALS
public static final int LESSTHAN
public static final int INSEN_LESSTHAN
public static final int LESSTHANOREQ
public static final int INSEN_LESSTHANOREQ
public static final int GREATERTHAN
public static final int INSEN_GREATERTHAN
public static final int GREATERTHANOREQ
public static final int INSEN_GREATERTHANOREQ
public static final int PLUS
public static final int MINUS
public static final int TIMES
public static final int DIVIDEDBY
public static final int TOTHE
public static final int AND
public static final int OR
public static final int NOT
public static final int ISIN
public static final int INSEN_ISIN
public static final int TOINT
public static final int TODBL
public static final int TODATE
public static final int TODATEEU
public static final int TOKENIZE
public static final int SUPERSET
public static final int SUBSET
public static final int TOBLK
public static final int TODATET
public static final int TODATEEUT
public static final int ABS