SparkDataCursor
An iterator over database results. Performing a queryItems() SparkDataCursor thus:
var cursor = api.queryItems( query );
if( cursor.hasNext() )
{var obj = cursor.next();}
hasNext
signature hasNext()
returns boolean
Checks if there is another object available.
next
signature next()
returns SparkDataItem
Moves the cursor ahead by one and returns the object the cursor is then at.