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, selectObject
abort, adapt, allSolutions, 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, toString, wait, wait, wait
forEachRemaining
protected Query query
public QueryAdapter(Query query)
public boolean isAbortable()
isAbortable
in class Cursor<Solution>
public Jpc getJpcContext()
getJpcContext
in class Query
public PrologEngine getPrologEngine()
getPrologEngine
in class Query
public boolean isErrorHandledQuery()
isErrorHandledQuery
in class Query
protected boolean shouldVerifySolution()
shouldVerifySolution
in class Query
protected Term getDefaultSelectedTerm()
Query
getDefaultSelectedTerm
in class Query
protected Solution basicOneSolutionOrThrow()
basicOneSolutionOrThrow
in class Cursor<Solution>
protected List<Solution> basicAllSolutions()
Cursor
basicAllSolutions
in class Query
protected void basicAbort()
basicAbort
in class Cursor<Solution>
protected void basicClose()
basicClose
in class Cursor<Solution>
protected Solution basicNext()
Cursor
Copyright © 2014. All rights reserved.