From d7dd2a8dbbdc754741840d25a380d5a2623c3231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=89=AF=E5=9B=BD?= Date: Sun, 3 Mar 2019 15:38:18 +0800 Subject: [PATCH] [RIP-78] update Example_Filter.md in RocketMQ docs/en --- docs/en/Example_Filter.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/Example_Filter.md b/docs/en/Example_Filter.md index 69669a1b..caf34cb7 100644 --- a/docs/en/Example_Filter.md +++ b/docs/en/Example_Filter.md @@ -1,7 +1,7 @@ # Filter Example ---------- -In most cases, tag is a simple and useful design to select message you want. For example: +In most cases, tag is a simple and useful design to select messages you want. For example: ```java DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("CID_EXAMPLE"); @@ -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. -- GitLab