Interface QueryListener


public interface QueryListener
Result notification for sync query command. The results are sent one record at a time.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRecord(Key key, Record record)
    This method is called when a record is received from the server.
  • Method Details

    • onRecord

      void onRecord(Key key, Record record)
      This method is called when a record is received from the server. The receive sequence is not ordered.

      The user may throw a AerospikeException.QueryTerminated exception if the command should be aborted. If an exception is thrown, parallel query command threads to other nodes will also be terminated.

      Parameters:
      key - unique record identifier
      record - record instance
      Throws:
      AerospikeException - if error occurs or query should be terminated.