org.hypergraphdb.query.impl
Class LinkProjectionMapping
java.lang.Object
org.hypergraphdb.query.impl.LinkProjectionMapping
- All Implemented Interfaces:
- Mapping<HGLink,HGHandle>
public final class LinkProjectionMapping
- extends java.lang.Object
- implements Mapping<HGLink,HGHandle>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkProjectionMapping
public LinkProjectionMapping()
LinkProjectionMapping
public LinkProjectionMapping(int targetPosition)
eval
public HGHandle eval(HGLink 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<HGLink,HGHandle>
- Parameters:
x - The mapping input.
- Returns:
- The mapping output.
getTargetPosition
public int getTargetPosition()
setTargetPosition
public void setTargetPosition(int targetPosition)