Skip to content

Instantly share code, notes, and snippets.

@miguno
Last active September 2, 2016 14:24
Show Gist options
  • Save miguno/ec96a9bdef63a31081511ca47e9f23e3 to your computer and use it in GitHub Desktop.
Save miguno/ec96a9bdef63a31081511ca47e9f23e3 to your computer and use it in GitHub Desktop.
Get all key-value records of state store "word-count" that have keys within a (key) range
# Get all key-value records of state store "word-count" that have keys within the range from "hat" to "kafka"
$ http://localhost:7070/state/keyvalues/word-count/range/hat/kafka
[
	{
		"key": "hat",
		"value": 65
	},
	{
		"key": "in",
		"value": 65
	},
	{
		"key": "jolly",
		"value": 55
	},
	{
		"key": "kafka",
		"value": 138
	}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment