Example #1
0
func executeGet(m *mapr.Client, n int, id int, s string) {
	for i := 0; i < n; i++ {
		key := strconv.Itoa(id) + "_" + strconv.Itoa(i)
		if m.Get(key) != s {
			fmt.Printf("Key [%v] was not found.\n", key)
		}
	}
}
Example #2
0
func executePut(m *mapr.Client, n int, id int, s string) {
	for i := 0; i < n; i++ {
		key := strconv.Itoa(id) + "_" + strconv.Itoa(i)
		m.Put(key, s)
	}
}