Class MemTripleIterator<X extends Exception>

    • Constructor Detail

      • MemTripleIterator

        public MemTripleIterator​(MemStatementList statementList,
                                 MemResource subject,
                                 MemIRI predicate,
                                 MemValue object,
                                 int snapshot)
                          throws InterruptedException
        Creates a new MemTripleIterator that will iterate over the triples contained in the supplied MemStatementList searching for triples that occur as either subject or object in those statements, and which match the specified pattern of subject, predicate, object.
        Parameters:
        statementList - the statements over which to iterate.
        subject - subject of pattern.
        predicate - predicate of pattern.
        object - object of pattern.
        Throws:
        InterruptedException
    • Method Detail

      • getNextElement

        protected MemTriple getNextElement()
        Searches through statementList, starting from index _nextStatementIdx + 1, for triples that match the constraints that have been set for this iterator.
        Specified by:
        getNextElement in class LookAheadIteration<MemTriple,​X extends Exception>
        Returns:
        The next element, or null if no more elements are available.