Package com.osohq.oso
Class Query
- java.lang.Object
-
- com.osohq.oso.Query
-
- All Implemented Interfaces:
Enumeration<HashMap<String,Object>>
public class Query extends Object implements Enumeration<HashMap<String,Object>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
protected org.json.JSONObject
nextCallResult(long callId)
Get the next JSONified Polar result of a cached method call (enumeration).HashMap<String,Object>
nextElement()
List<HashMap<String,Object>>
results()
Get all query results-
Methods 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 Detail
-
Query
public Query(Ffi.Query queryPtr, Host host, Map<String,Object> bindings) throws Exceptions.OsoException
Construct a new Query object.- Parameters:
queryPtr
- Pointer to the FFI query instance.- Throws:
Exceptions.OsoException
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfaceEnumeration<HashMap<String,Object>>
-
nextElement
public HashMap<String,Object> nextElement()
- Specified by:
nextElement
in interfaceEnumeration<HashMap<String,Object>>
-
results
public List<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).
-
-