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, withOperatorsQueryTermallSolutionsMultimap, asTerm, cachedNext, errorCheck, getAllSolutionsBindingsTerm, select, select, select, selectObject, selectObject, selectObject, selectObject, selectObject, selectObject, shouldVerifySolutionabort, adapt, allSolutions, basicOneSolutionOrThrow, basicSolutionsRange, close, filter, finalize, getState, hasNext, hasSolution, isExhausted, isOpen, isReady, iterativeAllSolutions, next, nonSynchronizedClose, nSolutions, numberOfSolutions, oneSolution, oneSolutionOrThrow, remove, setState, solutionsRangeclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic 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()
CursorbasicAllSolutions in class Querypublic Solution basicNext()
CursorCopyright © 2014. All rights reserved.