Scanning a large range with Locality API hangs

Thanks for the explanation, A.J.

I’m little confused how to proceed after getting boundaryKeys.
So I got a List of boundaryKeys of type byte []

List<byte[]> boundaryKeys

Now this has a size of 470 for my use case. How do I proceed and get a List of all KeyValueEntry from this boundaryKeys list?

List<KeyValueEntry> result

Also, could you look at the following link too?

Thanks for the help!!