| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALWAYS_FALSE
A bit of a search mask meaning 'the condition is always false'. |
| private final Column | |
| private final Column[] | |
| private final int | compareType
see constants in |
| private final boolean | |
| public static final int | END
A bit of a search mask meaning 'smaller or equal'. |
| public static final int | EQUALITY
A bit of a search mask meaning 'equal'. |
| private final Expression | |
| private final List | |
| private final Query | |
| public static final int | RANGE
A search mask meaning 'between'. |
| public static final int | SPATIAL_INTERSECTS
A bit of a search mask meaning 'spatial intersection'. |
| public static final int | START
A bit of a search mask meaning 'larger or equal'. |
| Access | Constructor and Description |
|---|---|
| private | IndexCondition(int
the comparison type, see constants in
compareType, ExpressionColumn column, Column[] columns, Expression expression, List<Expression> list, Query query)Comparison
|
| Modifier and Type | Method and Description |
|---|---|
| private StringBuilder | |
| private StringBuilder | |
| public IndexCondition | Returns: a new IndexCondition with the specified columns, ornull
if the index does not match with this condition.a non-null Index index)Creates a copy of this index condition but using the
|
| private static StringBuilder | |
| public static IndexCondition | Returns: the index conditionthe comparison type, see constants in compareType, ExpressionColumn Comparisonthe column column, Expression the expression expression)Create an index condition with the given parameters. |
| public Column | |
| public Column[] | |
| public int | |
| public static IndexCondition | Returns: the index conditionthe columns columns, List<Expression> the expression list list)Create a compound index condition with the compare type IN_LIST and with the given parameters. |
| public ResultInterface | |
| public Value | Returns: the valuethe session session)Get the current value of the expression. |
| public Value[] | Returns: the value listthe session session)Get the current value list of the expression. |
| public Expression | |
| public List | |
| public Query | |
| public static IndexCondition | Returns: the index conditionthe column column, Expression the array array)Create an index condition with the compare type IN_ARRAY and with the given parameters. |
| public static IndexCondition | Returns: the index conditionthe column column, List<Expression> the expression list list)Create an index condition with the compare type IN_LIST and with the given parameters. |
| public static IndexCondition | Returns: the index conditionthe column column, Query the select statement query)Create an index condition with the compare type IN_QUERY and with the given parameters. |
| public int | Returns: the maskall index conditions indexConditions)Get the comparison bit mask. |
| public String | |
| public boolean | |
| public boolean | Returns: true if it contains multiple columnsCheck if the expression contains multiple columns |
| public boolean | Returns: true if this is an end conditionCheck if this index condition is of the type column smaller or equal to value. |
| public boolean | |
| public boolean | Returns: true if this is a spatial intersects conditionCheck if this index condition is of the type spatial column intersects value. |
| public boolean | Returns: true if this is a start conditionCheck if this index condition is of the type column larger or equal to value. |
| public String |
| ALWAYS_FALSE | back to summary |
|---|---|
| public static final int ALWAYS_FALSE A bit of a search mask meaning 'the condition is always false'. | |
| column | back to summary |
|---|---|
| private final Column column | |
| columns | back to summary |
|---|---|
| private final Column[] columns | |
| compareType | back to summary |
|---|---|
| private final int compareType see constants in | |
| compoundColumns | back to summary |
|---|---|
| private final boolean compoundColumns | |
| END | back to summary |
|---|---|
| public static final int END A bit of a search mask meaning 'smaller or equal'. | |
| EQUALITY | back to summary |
|---|---|
| public static final int EQUALITY A bit of a search mask meaning 'equal'. | |
| expression | back to summary |
|---|---|
| private final Expression expression | |
| expressionList | back to summary |
|---|---|
| private final List<Expression> expressionList | |
| expressionQuery | back to summary |
|---|---|
| private final Query expressionQuery | |
| RANGE | back to summary |
|---|---|
| public static final int RANGE A search mask meaning 'between'. | |
| SPATIAL_INTERSECTS | back to summary |
|---|---|
| public static final int SPATIAL_INTERSECTS A bit of a search mask meaning 'spatial intersection'. | |
| START | back to summary |
|---|---|
| public static final int START A bit of a search mask meaning 'larger or equal'. | |
| IndexCondition | back to summary |
|---|---|
private IndexCondition(int compareType, ExpressionColumn column, Column[] columns, Expression expression, List<Expression> list, Query query)
| |
| buildSql | back to summary |
|---|---|
| private StringBuilder buildSql(int sqlFlags, StringBuilder builder) | |
| buildSql | back to summary |
|---|---|
| private StringBuilder buildSql(int sqlFlags, Column column, StringBuilder builder) | |
| cloneWithIndexColumns | back to summary |
|---|---|
| public IndexCondition cloneWithIndexColumns(Index index) Creates a copy of this index condition but using the
| |
| compareTypeToString | back to summary |
|---|---|
| private static StringBuilder compareTypeToString(StringBuilder builder, int i) | |
| get | back to summary |
|---|---|
| public static IndexCondition get(int compareType, ExpressionColumn column, Expression expression) Create an index condition with the given parameters.
| |
| getColumn | back to summary |
|---|---|
| public Column getColumn() Get the referenced column.
| |
| getColumns | back to summary |
|---|---|
| public Column[] getColumns() Get the referenced columns.
| |
| getCompareType | back to summary |
|---|---|
| public int getCompareType() | |
| getCompoundInList | back to summary |
|---|---|
| public static IndexCondition getCompoundInList(ExpressionList columns, List<Expression> list) Create a compound index condition with the compare type IN_LIST and with the given parameters.
| |
| getCurrentResult | back to summary |
|---|---|
| public ResultInterface getCurrentResult() Get the current result of the expression. The rows may not be of the same type, therefore the rows may not be unique.
| |
| getCurrentValue | back to summary |
|---|---|
| public Value getCurrentValue(SessionLocal session) Get the current value of the expression.
| |
| getCurrentValueList | back to summary |
|---|---|
| public Value[] getCurrentValueList(SessionLocal session) Get the current value list of the expression. The value list is of the same type as the column, distinct, and sorted.
| |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Get expression.
| |
| getExpressionList | back to summary |
|---|---|
| public List Get expression list.
| |
| getExpressionQuery | back to summary |
|---|---|
| public Query getExpressionQuery() Get expression query.
| |
| getInArray | back to summary |
|---|---|
| public static IndexCondition getInArray(ExpressionColumn column, Expression array) Create an index condition with the compare type IN_ARRAY and with the given parameters.
| |
| getInList | back to summary |
|---|---|
| public static IndexCondition getInList(ExpressionColumn column, List<Expression> list) Create an index condition with the compare type IN_LIST and with the given parameters.
| |
| getInQuery | back to summary |
|---|---|
| public static IndexCondition getInQuery(ExpressionColumn column, Query query) Create an index condition with the compare type IN_QUERY and with the given parameters.
| |
| getMask | back to summary |
|---|---|
| public int getMask(ArrayList<IndexCondition> indexConditions) Get the comparison bit mask.
| |
| getSQL | back to summary |
|---|---|
| public String getSQL(int sqlFlags) Get the SQL snippet of this comparison.
| |
| isAlwaysFalse | back to summary |
|---|---|
| public boolean isAlwaysFalse() Check if the result is always false.
| |
| isCompoundColumns | back to summary |
|---|---|
| public boolean isCompoundColumns() Check if the expression contains multiple columns
| |
| isEnd | back to summary |
|---|---|
| public boolean isEnd() Check if this index condition is of the type column smaller or equal to value.
| |
| isEvaluatable | back to summary |
|---|---|
| public boolean isEvaluatable() Check if the expression can be evaluated.
| |
| isSpatialIntersects | back to summary |
|---|---|
| public boolean isSpatialIntersects() Check if this index condition is of the type spatial column intersects value.
| |
| isStart | back to summary |
|---|---|
| public boolean isStart() Check if this index condition is of the type column larger or equal to value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |