com.aerospike.client.query
Class RecordSet

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

public final class RecordSet
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 com.aerospike.client.query.KeyRecord END
           
 
Method Summary
 void close()
          Cancel query.
 Key getKey()
          Get record's unique identifier.
 Record getRecord()
          Get record's header and bin data.
 boolean next()
          Retrieve next record.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END

public static final com.aerospike.client.query.KeyRecord 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.


getKey

public final Key getKey()
Get record's unique identifier.


getRecord

public final Record getRecord()
Get record's header and bin data.



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