public class QueryAdapter extends Query
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Function<Solution,Solution> |
adapterFunction |
protected Query |
query |
| Constructor and Description |
|---|
QueryAdapter(Query query) |
QueryAdapter(Query query,
com.google.common.base.Function<Solution,Solution> adapterFunction) |
| 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() |
protected Solution |
basicNext()
Returns the next available element in the cursor.
|
protected Solution |
basicOneSolutionOrThrow() |
protected Term |
getDefaultSelectedTerm()
The default selected term when select* methods are called without specifying a select term
By default, a PrologEngineQuery uses its goal.
|
Term |
getGoal() |
Jpc |
getJpcContext() |
PrologEngine |
getPrologEngine() |
boolean |
isAbortable() |
boolean |
isErrorHandledQuery() |
protected boolean |
shouldVerifySolution() |
allSolutionsMultimap, asTerm, cachedNext, errorCheck, getAllSolutionsBindingsTerm, select, select, select, selectObject, selectObject, selectObject, selectObject, selectObject, selectObjectabort, adapt, allSolutions, 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, toString, wait, wait, waitforEachRemainingprotected Query query
public QueryAdapter(Query query)
public boolean isAbortable()
isAbortable in class Cursor<Solution>public Jpc getJpcContext()
getJpcContext in class Querypublic PrologEngine getPrologEngine()
getPrologEngine in class Querypublic boolean isErrorHandledQuery()
isErrorHandledQuery in class Queryprotected boolean shouldVerifySolution()
shouldVerifySolution in class Queryprotected Term getDefaultSelectedTerm()
QuerygetDefaultSelectedTerm in class Queryprotected Solution basicOneSolutionOrThrow()
basicOneSolutionOrThrow in class Cursor<Solution>protected List<Solution> basicAllSolutions()
CursorbasicAllSolutions in class Queryprotected void basicAbort()
basicAbort in class Cursor<Solution>protected void basicClose()
basicClose in class Cursor<Solution>protected Solution basicNext()
CursorCopyright © 2014. All rights reserved.