Package com.osohq.oso
Class Query
java.lang.Object
com.osohq.oso.Query
- All Implemented Interfaces:
Enumeration<HashMap<String,Object>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected org.json.JSONObjectnextCallResult(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, waitMethods 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:
hasMoreElementsin interfaceEnumeration<HashMap<String,Object>>
-
nextElement
- Specified by:
nextElementin 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).
-