org.hypergraphdb.query.impl
Class IntersectionQuery

java.lang.Object
  extended by org.hypergraphdb.HGQuery
      extended by org.hypergraphdb.query.impl.IntersectionQuery
All Implemented Interfaces:
HGGraphHolder

public class IntersectionQuery
extends HGQuery

An IntersectionQuery combines the results of two underlying queries and produces a result set containing only elements that appear in both of the input result sets.

Author:
Borislav Iordanov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hypergraphdb.HGQuery
HGQuery.hg
 
Field Summary
 
Fields inherited from class org.hypergraphdb.HGQuery
NOP
 
Constructor Summary
IntersectionQuery(HGQuery left, HGQuery right, RSCombiner combiner)
          Construct an intersection of two queries.
 
Method Summary
 HGSearchResult execute()
           
 
Methods inherited from class org.hypergraphdb.HGQuery
getHyperGraph, make, setHyperGraph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntersectionQuery

public IntersectionQuery(HGQuery left,
                         HGQuery right,
                         RSCombiner combiner)

Construct an intersection of two queries.

Parameters:
left - One of the two queries. May not be null.
right - The other of the two queries. May not be null.
Method Detail

execute

public HGSearchResult execute()
Specified by:
execute in class HGQuery