org.hypergraphdb.query.impl
Class DerefMapping

java.lang.Object
  extended by org.hypergraphdb.query.impl.DerefMapping
All Implemented Interfaces:
Mapping<HGHandle,java.lang.Object>

public final class DerefMapping
extends java.lang.Object
implements Mapping<HGHandle,java.lang.Object>


Constructor Summary
DerefMapping(HyperGraph graph)
           
 
Method Summary
 java.lang.Object eval(HGHandle x)
          Map the parameter x and produce a result.
 HyperGraph getGraph()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerefMapping

public DerefMapping(HyperGraph graph)
Method Detail

eval

public java.lang.Object eval(HGHandle x)
Description copied from interface: Mapping

Map the parameter x and produce a result. The mapping is completely arbitrary and depending on the context under which it is defined. This interface mandates no restriction whatsoever as far the input or output of this mapping are concerned.

Specified by:
eval in interface Mapping<HGHandle,java.lang.Object>
Parameters:
x - The mapping input.
Returns:
The mapping output.

getGraph

public HyperGraph getGraph()