public class JpcQuery extends PrologQuery
Constructor and Description |
---|
JpcQuery(JpcEngine prologEngine,
Term goal,
boolean errorHandledQuery,
Jpc context) |
Modifier and Type | Method and Description |
---|---|
protected void |
basicAbort() |
protected List<Solution> |
basicAllSolutions()
The default implementation for obtaining all the solutions consists on just making use of the existing next() method
However, children could override this in case many calls to next() are more expensive that obtaining all the results of the query at once (e.g., a findall/3 query in Prolog)
|
protected void |
basicClose() |
Solution |
basicNext()
Returns the next available element in the cursor.
|
boolean |
isAbortable() |
exceptionHandledQueryTerm, getDefaultSelectedTerm, getGoal, getInstrumentedGoal, getJpcContext, getPrologEngine, instrumentGoal, isErrorHandledQuery, toString, withOperatorsQueryTerm
allSolutionsMultimap, asTerm, cachedNext, errorCheck, getAllSolutionsBindingsTerm, select, select, select, selectObject, selectObject, selectObject, selectObject, selectObject, selectObject, shouldVerifySolution
abort, adapt, allSolutions, basicOneSolutionOrThrow, basicSolutionsRange, close, filter, finalize, getState, hasNext, hasSolution, isExhausted, isOpen, isReady, iterativeAllSolutions, next, nonSynchronizedClose, nSolutions, numberOfSolutions, oneSolution, oneSolutionOrThrow, remove, setState, solutionsRange
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
public boolean isAbortable()
isAbortable
in class Cursor<Solution>
protected void basicAbort()
basicAbort
in class Cursor<Solution>
protected void basicClose()
basicClose
in class Cursor<Solution>
protected List<Solution> basicAllSolutions()
Cursor
basicAllSolutions
in class Query
public Solution basicNext()
Cursor
Copyright © 2014. All rights reserved.