org.hypergraphdb.query.impl
Class IndexScanQuery

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

public class IndexScanQuery
extends HGQuery

This queries simply scans all elements in a given index. The result of execute is actually HGRandomAccessResult. One can scan either the keys or the values of the HGIndex based on the returnKeys boolean constructor parameter.

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
IndexScanQuery(HGIndex idx, boolean returnKeys)
           
 
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

IndexScanQuery

public IndexScanQuery(HGIndex idx,
                      boolean returnKeys)
Method Detail

execute

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