com.aerospike.client.query
Class ResultSet

java.lang.Object
  extended by com.aerospike.client.query.ResultSet

public final class ResultSet
extends Object

This class manages record retrieval from queries. Multiple threads will retrieve records from the server nodes and put these records on the queue. The single user thread consumes these records from the queue.


Field Summary
static Integer END
           
 
Method Summary
 void close()
          Cancel query.
 Object getObject()
          Get record's header and bin data.
 boolean next()
          Retrieve next record.
 boolean put(Object object)
          Put object on the queue.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END

public static final Integer END
Method Detail

next

public final boolean next()
                   throws AerospikeException
Retrieve next record. This method will block until a record is retrieved or the query is cancelled.

Returns:
whether record exists - if false, no more records are available
Throws:
AerospikeException

close

public final void close()
Cancel query.


getObject

public final Object getObject()
Get record's header and bin data.


put

public final boolean put(Object object)
Put object on the queue.



Copyright © 2012–2014 Aerospike, Inc. All rights reserved.