public class TraversalBasedQuery extends HGQuery
Modifier and Type | Class and Description |
---|---|
static class |
TraversalBasedQuery.ReturnType |
HGQuery.hg
Constructor and Description |
---|
TraversalBasedQuery(HGTraversal traversal) |
TraversalBasedQuery(HGTraversal traversal,
TraversalBasedQuery.ReturnType returnType) |
Modifier and Type | Method and Description |
---|---|
HGSearchResult<?> |
execute()
Execute the query and return the result set.
|
TraversalBasedQuery.ReturnType |
getReturnType() |
HGTraversal |
getTraversal() |
void |
setReturnType(TraversalBasedQuery.ReturnType returnType) |
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public TraversalBasedQuery(HGTraversal traversal)
public TraversalBasedQuery(HGTraversal traversal, TraversalBasedQuery.ReturnType returnType)
public HGTraversal getTraversal()
public HGSearchResult<?> 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).
public TraversalBasedQuery.ReturnType getReturnType()
public void setReturnType(TraversalBasedQuery.ReturnType returnType)
Copyright © 2015. All rights reserved.