org.hypergraphdb.query.impl
Class ResultMapQuery

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

public class ResultMapQuery
extends HGQuery

A HGQuery that transforms the result of an underlying query by applying a provided mapping.

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
ResultMapQuery(HGQuery query, Mapping mapping)
          Create a query that transforms the output of a given query by the specified mapping.
 
Method Summary
 HGSearchResult execute()
           
 Mapping getMapping()
           
 void setMapping(Mapping mapping)
           
 
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

ResultMapQuery

public ResultMapQuery(HGQuery query,
                      Mapping mapping)

Create a query that transforms the output of a given query by the specified mapping. You can pass null as the mapping for the identity mapping.

Method Detail

setMapping

public void setMapping(Mapping mapping)

getMapping

public Mapping getMapping()

execute

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