public class IndexQueryCriteriaBuilder extends Object
IndexQueryCriterion
for IndexQuery
.Constructor and Description |
---|
IndexQueryCriteriaBuilder() |
Modifier and Type | Method and Description |
---|---|
static IndexQueryCriterion |
between(String field,
Object lower,
Object upper)
Between.
|
static IndexQueryCriterion |
eq(String field,
Object val)
Equal To.
|
static IndexQueryCriterion |
gt(String field,
Object val)
Greater Than.
|
static IndexQueryCriterion |
gte(String field,
Object val)
Greater Than or Equal To.
|
static IndexQueryCriterion |
in(String field,
Collection<?> vals)
In.
|
static IndexQueryCriterion |
lt(String field,
Object val)
Less Than.
|
static IndexQueryCriterion |
lte(String field,
Object val)
Less Than or Equal To.
|
public static IndexQueryCriterion eq(String field, Object val)
field
- Index field to apply criterion.val
- Strict equality value.public static IndexQueryCriterion lt(String field, Object val)
Please note that null
is not a valid value for setting search boundaries.
The result of executing this criterion will not contain NULL
values for the specified field
.
To obtain NULL
values of the specified field
, use explicit eq(field, null)
or
in(field, null, ...)
criteria.
field
- Index field to apply criterion.val
- Exclusive upper bound.public static IndexQueryCriterion lte(String field, Object val)
Please note that null
is not a valid value for setting search boundaries.
The result of executing this criterion will not contain NULL
values for the specified field
.
To obtain NULL
values of the specified field
, use explicit eq(field, null)
or
in(field, null, ...)
criteria.
field
- Index field to apply criterion.val
- Inclusive upper bound.public static IndexQueryCriterion gt(String field, Object val)
Please note that null
is not a valid value for setting search boundaries.
The result of executing this criterion will not contain NULL
values for the specified field
.
To obtain NULL
values of the specified field
, use explicit eq(field, null)
or
in(field, null, ...)
criteria.
field
- Index field to apply criterion.val
- Exclusive lower bound.public static IndexQueryCriterion gte(String field, Object val)
Please note that null
is not a valid value for setting search boundaries.
The result of executing this criterion will not contain NULL
values for the specified field
.
To obtain NULL
values of the specified field
, use explicit eq(field, null)
or
in(field, null, ...)
criteria.
field
- Index field to apply criterion.val
- Inclusive lower bound.public static IndexQueryCriterion between(String field, Object lower, Object upper)
Please note that null
is not a valid value for setting search boundaries.
The result of executing this criterion will not contain NULL
values for the specified field
.
To obtain NULL
values of the specified field
, use explicit eq(field, null)
or
in(field, null, ...)
criteria.
field
- Index field to apply criterion.lower
- Inclusive lower bound.upper
- Inclusive upper bound.public static IndexQueryCriterion in(String field, Collection<?> vals)
field
- Index field to apply criterion.vals
- Collection of values to find.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024