Class LPTopGoalIterator

All Implemented Interfaces:
Iterator<Triple>, IteratorCloseable<Triple>, Closeable, LPInterpreterContext, LPInterpreterState, ClosableIterator<Triple>

public class LPTopGoalIterator extends Object implements ClosableIterator<Triple>, LPInterpreterContext
Wraps up the results an LP rule engine instance into a conventional iterator. Ensures that the engine is closed and detached from the inference graph if the iterator hits the end of the result set.