public final class IndexQuery<K,V> extends Query<javax.cache.Cache.Entry<K,V>>
DFLT_PAGE_SIZE
Constructor and Description |
---|
IndexQuery(Class<?> valCls)
Specify index with cache value class.
|
IndexQuery(Class<?> valCls,
@Nullable String idxName)
Specify index with cache value class and index name.
|
IndexQuery(String valType)
Specify index with cache value type.
|
IndexQuery(String valType,
@Nullable String idxName)
Specify index with cache value type and index name.
|
Modifier and Type | Method and Description |
---|---|
List<IndexQueryCriterion> |
getCriteria()
Index query criteria.
|
IgniteBiPredicate<K,V> |
getFilter()
Gets remote cache entries filter.
|
String |
getIndexName()
Index name.
|
@Nullable String |
getLabel()
Gets query label.
|
int |
getLimit()
Gets limit to response records count.
|
@Nullable Integer |
getPartition()
Gets partition number over which this query should iterate.
|
String |
getValueType()
Cache Value type.
|
IndexQuery<K,V> |
setCriteria(IndexQueryCriterion... criteria)
Sets conjunction (AND) criteria for index query.
|
IndexQuery<K,V> |
setCriteria(List<IndexQueryCriterion> criteria)
Sets conjunction (AND) criteria for index query.
|
IndexQuery<K,V> |
setFilter(IgniteBiPredicate<K,V> filter)
Sets remote cache entries filter.
|
IndexQuery<K,V> |
setLabel(@Nullable String label)
Sets query label.
|
IndexQuery<K,V> |
setLimit(int limit)
Sets limit to response records count.
|
IndexQuery<K,V> |
setPartition(@Nullable Integer part)
Sets partition number over which this query should iterate.
|
getPageSize, isLocal, prepare, setLocal, setPageSize, toString
public IndexQuery(Class<?> valCls)
valCls
- Cache value class.public IndexQuery(String valType)
valType
- Cache value type.public IndexQuery(Class<?> valCls, @Nullable @Nullable String idxName)
valCls
- Cache value class.idxName
- Index name.public IndexQuery<K,V> setCriteria(IndexQueryCriterion... criteria)
criteria
- Criteria to set.this
for chaining.public IndexQuery<K,V> setCriteria(List<IndexQueryCriterion> criteria)
criteria
- Criteria to set.this
for chaining.public List<IndexQueryCriterion> getCriteria()
public String getValueType()
public String getIndexName()
public int getLimit()
public IndexQuery<K,V> setLimit(int limit)
limit
- POsitive limit to set.this
For chaining.public IndexQuery<K,V> setFilter(IgniteBiPredicate<K,V> filter)
filter
- Predicate for remote filtering of query result cursor.this
for chaining.public IgniteBiPredicate<K,V> getFilter()
public IndexQuery<K,V> setPartition(@Nullable @Nullable Integer part)
null
, query will iterate over
all partitions in the cache. Must be in the range [0, N) where N is partition number in the cache.part
- Partition number over which this query should iterate.this
for chaining.@Nullable public @Nullable Integer getPartition()
null
if partition was not
set. In this case query will iterate over all partitions in the cache.null
.public IndexQuery<K,V> setLabel(@Nullable @Nullable String label)
The specified label can be used to identify the running query in system views and in the log when printing warnings about long-running queries.
label
- Query label, or null
to unset.this
for chaining.@Nullable public @Nullable String getLabel()
null
if not set.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024