Package com.osohq.oso
Class Query
java.lang.Object
com.osohq.oso.Query
- All Implemented Interfaces:
Enumeration<HashMap<String,
Object>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected org.json.JSONObject
nextCallResult
(long callId) Get the next JSONified Polar result of a cached method call (enumeration).results()
Get all query resultsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
Query
public Query(Ffi.Query queryPtr, Host host, Map<String, Object> bindings) throws Exceptions.OsoExceptionConstruct a new Query object.- Parameters:
queryPtr
- Pointer to the FFI query instance.- Throws:
Exceptions.OsoException
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<HashMap<String,
Object>>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<HashMap<String,
Object>>
-
results
Get all query results- Returns:
- List of all query results (binding sets)
-
nextCallResult
protected org.json.JSONObject nextCallResult(long callId) throws NoSuchElementException, Exceptions.OsoException Get the next JSONified Polar result of a cached method call (enumeration).
-