org.hypergraphdb
Class IncidenceSetRef

java.lang.Object
  extended by org.hypergraphdb.IncidenceSetRef
All Implemented Interfaces:
LazyRef<IncidenceSet>

public class IncidenceSetRef
extends java.lang.Object
implements LazyRef<IncidenceSet>

An implementation that will lazily query for the incidence set of an atom. Many HGAtomTypes ignore the incidence set when constructing the value of a given atom. For this reason, it is only loaded on demand since it requires an extra DB query.

Author:
Borislav Iordanov

Constructor Summary
IncidenceSetRef(HGHandle atomHandle, HyperGraph graph)
           
 
Method Summary
 IncidenceSet deref()
          Return the actual value that this reference encapsulate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncidenceSetRef

public IncidenceSetRef(HGHandle atomHandle,
                       HyperGraph graph)
Method Detail

deref

public IncidenceSet deref()
Description copied from interface: LazyRef

Return the actual value that this reference encapsulate. Concrete implementation may perform a length operation in order to get to the value.

Specified by:
deref in interface LazyRef<IncidenceSet>