public class ExpressionBasedQuery<ResultType> extends HGQuery<ResultType>
HGQuery.hg
Constructor and Description |
---|
ExpressionBasedQuery(HyperGraph graph,
boolean withVarContext) |
ExpressionBasedQuery(HyperGraph graph,
HGQueryCondition condition) |
Modifier and Type | Method and Description |
---|---|
HGQuery<ResultType> |
compile(HGQueryCondition condition)
Compile the passed in condition as
this query object and return this . |
HGSearchResult<ResultType> |
execute()
Execute the query and return the result set.
|
HGQuery<ResultType> |
getCompiledQuery() |
HGQueryCondition |
getCondition()
Return a possibly simplified and normalized version of the condition with
which this query was constructed.
|
findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public ExpressionBasedQuery(HyperGraph graph, boolean withVarContext)
public ExpressionBasedQuery(HyperGraph graph, HGQueryCondition condition)
public HGQuery<ResultType> compile(HGQueryCondition condition)
HGQuery
Compile the passed in condition as this
query object and return this
.
compile
in class HGQuery<ResultType>
public HGSearchResult<ResultType> 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<ResultType>
public HGQueryCondition getCondition()
Return a possibly simplified and normalized version of the condition with which this query was constructed.
public HGQuery<ResultType> getCompiledQuery()
Copyright © 2015. All rights reserved.