You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ def compare_and_swap(x):
108
108
gb = GearsBuilder()
109
109
gb.map(age) # Extract the 'age' field from each hash
110
110
gb.foreach(compare_and_swap) # Compare the max age to the value stored at age:maximum
111
-
gb.register('person:*') # Only process keys matching the pattern 'person:*'
111
+
gb.register(prefix='person:*') # Only process keys matching the pattern 'person:*'
112
112
```
113
113
114
114
You can see here that we define two methods: `age()` and `compare_and_swap()`. Even if you're not familiar with Python, you should be able to see what the methods do.
0 commit comments