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

Returns the object the cursor is at and moves the cursor ahead by one.

Did this page help you? Please enter your feedback below. For questions about using this part of the platform, please contact support here