public class IndexBasedQuery<T> extends HGQuery<T>
A simple query that operates on a single index.
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexBasedQuery.ScanType |
HGQuery.hg| Constructor and Description |
|---|
IndexBasedQuery(HGIndex<? extends Object,? extends Object> index,
Object key) |
IndexBasedQuery(HGIndex<Object,Object> index,
IndexBasedQuery.ScanType scanType)
Construct a query that will scan the whole index - either its keys or its
values depending on the
scanKeys parameter. |
IndexBasedQuery(HGIndex<Object,Object> index,
Object key,
ComparisonOperator operator) |
IndexBasedQuery(HGIndex<Object,Object> index,
Ref<Object> key,
ComparisonOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
HGSearchResult<T> |
execute()
Execute the query and return the result set.
|
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, varpublic IndexBasedQuery(HGIndex<Object,Object> index, IndexBasedQuery.ScanType scanType)
Construct a query that will scan the whole index - either its keys or its
values depending on the scanKeys parameter.
index - The HGIndex on which the query is performed.scanKeys - true if all keys must be scanned and
false if all values must be scanned instead.public IndexBasedQuery(HGIndex<? extends Object,? extends Object> index, Object key)
public IndexBasedQuery(HGIndex<Object,Object> index, Ref<Object> key, ComparisonOperator operator)
public IndexBasedQuery(HGIndex<Object,Object> index, Object key, ComparisonOperator operator)
public HGSearchResult<T> execute()
HGQuery
Execute the query and return the result set. Note that queries are lazily executed so that
results are actually obtained when one iterates (using the next and prev
of the returned object).
Copyright © 2015. All rights reserved.