org.hypergraphdb
Class HGQuery<SearchResult>

java.lang.Object
  extended by org.hypergraphdb.HGQuery<SearchResult>
All Implemented Interfaces:
HGGraphHolder
Direct Known Subclasses:
ExpressionBasedQuery, IndexBasedQuery, IndexScanQuery, IntersectionQuery, KeyBasedQuery, PipeQuery, PredicateBasedFilter, ResultMapQuery, TraversalBasedQuery, UnionQuery

public abstract class HGQuery<SearchResult>
extends java.lang.Object
implements HGGraphHolder

The HGQuery class represents an arbitrary query to the hypergraph database. Queries can be defined either by using the query language, or they can be built directly from query condition instances.

Author:
Borislav Iordanov

Nested Class Summary
static class HGQuery.hg
           This class serves as a namespace to a set of syntactically concise functions for constructing HyperGraph query conditions and performing HyperGraph queries.
 
Field Summary
static HGQuery<java.lang.Object> NOP
           
 
Constructor Summary
HGQuery()
           
 
Method Summary
abstract  HGSearchResult<SearchResult> execute()
           
 HyperGraph getHyperGraph()
           
static
<SearchResult>
HGQuery<SearchResult>
make(HyperGraph hg, HGQueryCondition condition)
           
 void setHyperGraph(HyperGraph graph)
          During load time, set the HyperGraph instance to which this atom belongs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOP

public static final HGQuery<java.lang.Object> NOP
Constructor Detail

HGQuery

public HGQuery()
Method Detail

make

public static <SearchResult> HGQuery<SearchResult> make(HyperGraph hg,
                                                        HGQueryCondition condition)

getHyperGraph

public HyperGraph getHyperGraph()

setHyperGraph

public void setHyperGraph(HyperGraph graph)
Description copied from interface: HGGraphHolder

During load time, set the HyperGraph instance to which this atom belongs.

Specified by:
setHyperGraph in interface HGGraphHolder

execute

public abstract HGSearchResult<SearchResult> execute()