SearchResult
- public class AnalyzedQuery<SearchResult> extends HGQuery<SearchResult>
A query object that holds information collected during the compilation process. When a
HGQueryCondition
is transformed into a HGQuery
, it goes through several
phases where the original condition and sub-conditions get transformed into other condition
objects, as intermediary steps, and eventually into an executable HGQuery
.
HGQuery.hg
Modifier and Type | Field and Description |
---|---|
static String |
INTERSECTION_THRESHOLD |
static String |
SCAN_THRESHOLD |
Constructor and Description |
---|
AnalyzedQuery(HGQueryCondition topLevel,
Map<String,Object> options) |
Modifier and Type | Method and Description |
---|---|
Map<String,Set<HGQueryCondition>> |
analyze() |
HGSearchResult<SearchResult> |
execute()
Execute the query and return the result set.
|
Set<HGQueryCondition> |
getAnalysisResult(String option) |
void |
transformed(HGQueryCondition source,
HGQueryCondition destination) |
void |
transformed(HGQueryCondition source,
Set<HGQueryCondition> destination) |
void |
transformed(Set<HGQueryCondition> source,
HGQueryCondition destination) |
<R> void |
translated(HGQueryCondition source,
HGQuery<R> destination,
QueryMetaData metadata) |
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public static final String INTERSECTION_THRESHOLD
public static final String SCAN_THRESHOLD
public AnalyzedQuery(HGQueryCondition topLevel, Map<String,Object> options)
public void transformed(HGQueryCondition source, HGQueryCondition destination)
public void transformed(Set<HGQueryCondition> source, HGQueryCondition destination)
public void transformed(HGQueryCondition source, Set<HGQueryCondition> destination)
public <R> void translated(HGQueryCondition source, HGQuery<R> destination, QueryMetaData metadata)
public Set<HGQueryCondition> getAnalysisResult(String option)
public HGSearchResult<SearchResult> 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).
execute
in class HGQuery<SearchResult>
public Map<String,Set<HGQueryCondition>> analyze()
Copyright © 2015. All rights reserved.