2

I am trying to scan an entire set in Aerospike, but in the callback function I am getting key.userKey as null.

I have tried making both writePolicy.sendKey = true and scanPolicy.sendKey = true but all in vain

I have the most recent AS java client version. (3.1.5)

Sample from put function:

            WritePolicy writePolicy = new WritePolicy();
            writePolicy.expiration = ABC;
            writePolicy.timeout = XYZ;
            writePolicy.sendKey = true;
Shadow
  • 123
  • 8

1 Answers1

5

I think you may not have set sendKey = true on your scan policy.

Here is an example that works.

double-beep
  • 5,031
  • 17
  • 33
  • 41
Mnemaudsyne
  • 513
  • 4
  • 13