Last active
February 16, 2020 06:27
-
-
Save rbotzer/435852c1d9d030dac2cbd97c4b228224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Count all the segments in the segment ID range 8000-9000 | |
print("\nCount how many segments u1 has in the segment ID range 8000-9000") | |
if options.interactive: | |
pause() | |
ops = [mh.map_get_by_key_range("u", 8000, 9000, aerospike.MAP_RETURN_COUNT)] | |
_, _, b = client.operate(key, ops) | |
print(b["u"]) | |
print(spacer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment