org.jrdf.graph.global.index
Interface ReadableIndex<T>

All Known Implementing Classes:
ReadableIndexImpl

public interface ReadableIndex<T>


Method Summary
 ClosableIterator<Long> findChildIds(Long mid)
           
 Long findEnclosingMoleculeId(Long mid)
           
 Long findHeadTripleMid(Long pid, Long... triple)
           
 Long findMid(T... triple)
           
 ClosableIterator<Long> findMoleculeIDs(Long[] triple)
           
 Long findTopMoleculeID(Long mid)
           
 ClosableIterator<Long[]> findTriplesForMid(T pid, T mid)
           
 ClosableIterator<Long[]> findTriplesForPid(Long pid)
           
 long getMaxMoleculeId()
           
 ClosableIterator<Long[]> getMidPidPairs(Long... triple)
           
 boolean isSubmoleculeOfParentID(Long pid, Long mid)
           
 

Method Detail

findMid

Long findMid(T... triple)
             throws GraphException
Throws:
GraphException

findTriplesForMid

ClosableIterator<Long[]> findTriplesForMid(T pid,
                                           T mid)

findEnclosingMoleculeId

Long findEnclosingMoleculeId(Long mid)
                             throws GraphException
Throws:
GraphException

findChildIds

ClosableIterator<Long> findChildIds(Long mid)

findHeadTripleMid

Long findHeadTripleMid(Long pid,
                       Long... triple)
                       throws GraphException
Throws:
GraphException

findTriplesForPid

ClosableIterator<Long[]> findTriplesForPid(Long pid)

getMaxMoleculeId

long getMaxMoleculeId()

findMoleculeIDs

ClosableIterator<Long> findMoleculeIDs(Long[] triple)

isSubmoleculeOfParentID

boolean isSubmoleculeOfParentID(Long pid,
                                Long mid)

getMidPidPairs

ClosableIterator<Long[]> getMidPidPairs(Long... triple)

findTopMoleculeID

Long findTopMoleculeID(Long mid)
                       throws GraphException
Throws:
GraphException