|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.index.IndexCondition
public class IndexCondition
A index condition object is made for each condition that can potentially use an index. This class does not extend expression, but in general there is one expression that maps to each index condition.
Field Summary | |
---|---|
static int |
ALWAYS_FALSE
A bit of a search mask meaning 'the condition is always false'. |
static int |
END
A bit of a search mask meaning 'smaller or equal'. |
static int |
EQUALITY
A bit of a search mask meaning 'equal'. |
static int |
RANGE
A search mask meaning 'between'. |
static int |
START
A bit of a search mask meaning 'larger or equal'. |
Method Summary | |
---|---|
static IndexCondition |
get(int compareType,
ExpressionColumn column,
Expression expression)
Create an index condition with the given parameters. |
Column |
getColumn()
Get the referenced column. |
int |
getCompareType()
|
ResultInterface |
getCurrentResult(Session session)
Get the current result of the expression. |
Value |
getCurrentValue(Session session)
Get the current value of the expression. |
Value[] |
getCurrentValueList(Session session)
Get the current value list of the expression. |
static IndexCondition |
getInList(ExpressionColumn column,
java.util.List<Expression> list)
Create an index condition with the compare type IN_LIST and with the given parameters. |
static IndexCondition |
getInQuery(ExpressionColumn column,
Query query)
Create an index condition with the compare type IN_QUERY and with the given parameters. |
int |
getMask(java.util.ArrayList<IndexCondition> indexConditions)
Get the comparison bit mask. |
java.lang.String |
getSQL()
Get the SQL snippet of this comparison. |
boolean |
isAlwaysFalse()
Check if the result is always false. |
boolean |
isEnd()
Check if this index condition is of the type column smaller or equal to value. |
boolean |
isEvaluatable()
Check if the expression can be evaluated. |
boolean |
isStart()
Check if this index condition is of the type column larger or equal to value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EQUALITY
public static final int START
public static final int END
public static final int RANGE
public static final int ALWAYS_FALSE
Method Detail |
---|
public static IndexCondition get(int compareType, ExpressionColumn column, Expression expression)
compareType
- the comparison typecolumn
- the columnexpression
- the expression
public static IndexCondition getInList(ExpressionColumn column, java.util.List<Expression> list)
column
- the columnlist
- the expression list
public static IndexCondition getInQuery(ExpressionColumn column, Query query)
column
- the columnquery
- the select statement
public Value getCurrentValue(Session session)
session
- the session
public Value[] getCurrentValueList(Session session)
session
- the session
public ResultInterface getCurrentResult(Session session)
session
- the session
public java.lang.String getSQL()
public int getMask(java.util.ArrayList<IndexCondition> indexConditions)
indexConditions
- all index conditions
public boolean isAlwaysFalse()
public boolean isStart()
public boolean isEnd()
public int getCompareType()
public Column getColumn()
public boolean isEvaluatable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |