org.jrdf.graph.global.index.longindex
Interface MoleculeStructureIndex<T>

All Known Implementing Classes:
MoleculeStructureIndexMem, MoleculeStructureIndexSesame, MoleculeStructureIndexSesameSync

public interface MoleculeStructureIndex<T>

The generic interface for storing indexed global molecules.


Method Summary
 void add(T... quin)
           
 void clear()
           
 void close()
           
 boolean contains(T first)
           
 boolean containsPIDMID(Long pid, Long mid)
           
 ClosableIterator<Long> getAllFourthIndex()
           
 ClosableIterator<Long> getFifthIndex(Long first, Long second, Long third, Long fourth)
           
 ClosableIterator<Long> getFourthForOneValue(Long first)
           
 ClosableIterator<Long> getFourthForTwoValues(Long first, Long second)
           
 ClosableIterator<Long[]> getFourthIndex(Long first, Long second, Long third)
           
 ClosableIterator<Long> getFourthIndexOnly(Long first, Long second, Long third)
           
 long getSize()
           
 ClosableIterator<T[]> getSubIndex(T first)
           
 ClosableIterator<T[]> getSubSubIndex(T first, T second)
           
 ClosableIterator<T[]> iterator()
           
 void remove(T... quin)
           
 boolean removeSubIndex(T first)
           
 

Method Detail

add

void add(T... quin)
         throws GraphException
Throws:
GraphException

remove

void remove(T... quin)
            throws GraphException
Throws:
GraphException

clear

void clear()

iterator

ClosableIterator<T[]> iterator()

getSubIndex

ClosableIterator<T[]> getSubIndex(T first)

getSubSubIndex

ClosableIterator<T[]> getSubSubIndex(T first,
                                     T second)

contains

boolean contains(T first)

removeSubIndex

boolean removeSubIndex(T first)

getSize

long getSize()

close

void close()

getFifthIndex

ClosableIterator<Long> getFifthIndex(Long first,
                                     Long second,
                                     Long third,
                                     Long fourth)

containsPIDMID

boolean containsPIDMID(Long pid,
                       Long mid)

getFourthIndex

ClosableIterator<Long[]> getFourthIndex(Long first,
                                        Long second,
                                        Long third)

getFourthIndexOnly

ClosableIterator<Long> getFourthIndexOnly(Long first,
                                          Long second,
                                          Long third)

getFourthForTwoValues

ClosableIterator<Long> getFourthForTwoValues(Long first,
                                             Long second)

getFourthForOneValue

ClosableIterator<Long> getFourthForOneValue(Long first)

getAllFourthIndex

ClosableIterator<Long> getAllFourthIndex()