public class Compare extends WhereDirective implements DirectiveUIHints.Provider
| Modifier and Type | Field and Description |
|---|---|
static int |
EQ |
static int |
GE |
static int |
GT |
static int |
LE |
static int |
LT |
static int |
NE |
static int |
OP_MASK |
private Operand |
operand1 |
private Operand |
operand2 |
private int |
operator |
static int |
TYPE_MASK |
static int |
TYPE_NUMERIC |
static int |
TYPE_STRING |
static int |
TYPE_TOPIC |
DEFAULT_COL, DEFAULT_NS| Constructor and Description |
|---|
Compare() |
Compare(java.lang.Object operand1,
int operator,
java.lang.Object operand2) |
Compare(java.lang.Object operand1,
java.lang.String operator,
java.lang.Object operand2) |
| Modifier and Type | Method and Description |
|---|---|
void |
endQuery(QueryContext context)
Signals end of query and performs any cleanup that may be needed.
|
DirectiveUIHints |
getUIHints() |
boolean |
includeRow(QueryContext context,
ResultRow row) |
static int |
parseOperator(java.lang.String operator) |
boolean |
startQuery(QueryContext context)
Prepares the query for execution.
|
and, and, not, or, or, processRowqueryIteratoras, as, debugString, debugString, debugStringInner, debugStringInner, debugStringInner, debugStringParams, debugStringParams, doQuery, from, from, from, from, from, from, from, from, from, from, getStandardAddonHints, getStandardAddonHints, isStatic, join, main, of, query, to, to, to, to, to, where, wherepublic static final int EQ
public static final int NE
public static final int LT
public static final int GT
public static final int LE
public static final int GE
public static final int OP_MASK
public static final int TYPE_MASK
public static final int TYPE_STRING
public static final int TYPE_NUMERIC
public static final int TYPE_TOPIC
private Operand operand1
private Operand operand2
private int operator
public Compare()
public Compare(java.lang.Object operand1,
int operator,
java.lang.Object operand2)
public Compare(java.lang.Object operand1,
java.lang.String operator,
java.lang.Object operand2)
public DirectiveUIHints getUIHints()
getUIHints in interface DirectiveUIHints.Providerpublic static int parseOperator(java.lang.String operator)
public void endQuery(QueryContext context) throws QueryException
DirectiveendQuery in class DirectiveQueryExceptionpublic boolean startQuery(QueryContext context) throws QueryException
DirectivestartQuery in class DirectiveQueryExceptionpublic boolean includeRow(QueryContext context, ResultRow row) throws QueryException
includeRow in class WhereDirectiveQueryExceptionCopyright 2004-2015 Wandora Team