public class ObservableQuery extends QueryAdapter
adapterFunction, query| Constructor and Description |
|---|
ObservableQuery(Query query) |
ObservableQuery(Query query,
Iterable<QueryListener> listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryListener(QueryListener listener) |
void |
addQueryListeners(Iterable<QueryListener> listeners) |
List<Solution> |
allSolutions() |
boolean |
hasNext()
Answers if there are still rows in the cursor.
|
Solution |
next()
Answers the next solution.
|
Solution |
oneSolutionOrThrow() |
void |
removeQueryListener(QueryListener listener) |
protected void |
setState(CursorState state) |
List<Solution> |
solutionsRange(long from,
long to) |
basicAbort, basicAllSolutions, basicClose, basicNext, basicOneSolutionOrThrow, getDefaultSelectedTerm, getGoal, getJpcContext, getPrologEngine, isAbortable, isErrorHandledQuery, shouldVerifySolutionallSolutionsMultimap, asTerm, cachedNext, errorCheck, getAllSolutionsBindingsTerm, select, select, select, selectObject, selectObject, selectObject, selectObject, selectObject, selectObjectabort, adapt, basicSolutionsRange, close, filter, finalize, getState, hasSolution, isExhausted, isOpen, isReady, iterativeAllSolutions, nonSynchronizedClose, nSolutions, numberOfSolutions, oneSolution, removeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ObservableQuery(Query query)
public ObservableQuery(Query query, Iterable<QueryListener> listeners)
protected void setState(CursorState state)
public boolean hasNext()
Cursorpublic Solution oneSolutionOrThrow()
oneSolutionOrThrow in class Cursor<Solution>public List<Solution> solutionsRange(long from, long to)
solutionsRange in class Cursor<Solution>from - the (0-based) index (inclusive) of the first solutionto - the (0-based) index (exclusive) of the last solutionpublic List<Solution> allSolutions()
allSolutions in class Cursor<Solution>public void addQueryListeners(Iterable<QueryListener> listeners)
public void addQueryListener(QueryListener listener)
public void removeQueryListener(QueryListener listener)
Copyright © 2014. All rights reserved.