Class MemStatementIterator<X extends Exception>

    • Constructor Detail

      • MemStatementIterator

        public MemStatementIterator​(MemStatementList statementList,
                                    MemResource subject,
                                    MemIRI predicate,
                                    MemValue object,
                                    Boolean explicit,
                                    int snapshot,
                                    MemResource... contexts)
        Creates a new MemStatementIterator that will iterate over the statements contained in the supplied MemStatementList searching for statements that match the specified pattern of subject, predicate, object and context(s).
        Parameters:
        statementList - the statements over which to iterate.
        subject - subject of pattern.
        predicate - predicate of pattern.
        object - object of pattern.
        contexts - context(s) of pattern.
    • Method Detail

      • getNextElement

        protected MemStatement getNextElement()
        Searches through statementList, starting from index _nextStatementIdx + 1, for statements that match the constraints that have been set for this iterator. If a matching statement has been found it will be stored in _nextStatement and _nextStatementIdx points to the index of this statement in _statementList. Otherwise, _nextStatement will set to null.
        Specified by:
        getNextElement in class LookAheadIteration<MemStatement,​X extends Exception>
        Returns:
        The next element, or null if no more elements are available.