You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2019/03/03 01:05:20 UTC
[rocketmq] branch develop updated: Update Example_Filter.md
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 644d1cf Update Example_Filter.md
new 9891217 Merge pull request #972 from Geek-S/patch-2
644d1cf is described below
commit 644d1cfefed5e1cbafae663cc6fe2c5a72c43781
Author: Geek-S <Ge...@outlook.com>
AuthorDate: Sat Mar 2 18:50:12 2019 +0800
Update Example_Filter.md
---
docs/en/Example_Filter.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/en/Example_Filter.md b/docs/en/Example_Filter.md
index 31fdc32..69669a1 100644
--- a/docs/en/Example_Filter.md
+++ b/docs/en/Example_Filter.md
@@ -28,7 +28,7 @@ SQL feature could do some calculation through the properties you put in when sen
------------
```
-## 1. Grammars
+## 1.Grammars
RocketMQ only defines some basic grammars to support this feature. You could also extend it easily.
- Numeric comparison, like **>**, **>=**, **<**, **<=**, **BETWEEN**, **=**;
@@ -43,13 +43,13 @@ Constant types are:
- **NULL**, special constant;
- Boolean, **TRUE** or **FALSE**;
-## 2. Usage constraints
+## 2.Usage constraints
Only push consumer could select messages by SQL92. The interface is:
```
public void subscribe(finalString topic, final MessageSelector messageSelector)
```
-## 3. Producer example
+## 3.Producer example
You can put properties in message through method putUserProperty when sending.
```java
@@ -67,7 +67,7 @@ producer.shutdown();
```
-## 4. Consumer example
+## 4.Consumer example
Use `MessageSelector.bySql` to select messages through SQL when consuming.