Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2023-01-19 17:08:45 +00:00

65 lines
8.5 KiB
HTML

<a name="mrs_01_1143"></a><a name="mrs_01_1143"></a>
<h1 class="topictitle1">Filter Rows</h1>
<div id="body8662426"><div class="section" id="mrs_01_1143__en-us_topic_0000001173949608_sbcc0da2d2e724349be3690411a1a787a"><h4 class="sectiontitle">Overview</h4><p id="mrs_01_1143__en-us_topic_0000001173949608_a10178a86f8fd49c88fd7bdf45724477a">This <span class="parmname" id="mrs_01_1143__en-us_topic_0000001173949608_pab60b6dc880f489a8e30e45b5d3271a0"><b>Filter Rows</b></span> operator filters rows that contain triggering conditions by configuring logic conditions.</p>
</div>
<div class="section" id="mrs_01_1143__en-us_topic_0000001173949608_sc97bdde309f044cc915f9bd831cf26d4"><h4 class="sectiontitle">Input and Output</h4><ul id="mrs_01_1143__en-us_topic_0000001173949608_u10d47337bb7140e0a65fd9d8c5020bd3"><li id="mrs_01_1143__en-us_topic_0000001173949608_l757768bbde60404d96c6120abbe9064c">Input: fields used to create filter conditions</li><li id="mrs_01_1143__en-us_topic_0000001173949608_ld0baf33bbfd248adb490f43dda45ba21">Output: none</li></ul>
</div>
<div class="section" id="mrs_01_1143__en-us_topic_0000001173949608_s77c173d094914ebc90ca8a8cf59ef9c7"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1143__en-us_topic_0000001173949608_td28fae89a7fd4b90a62d4b2d34dc2d7a" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Operator parameters description</caption><thead align="left"><tr id="mrs_01_1143__en-us_topic_0000001173949608_rc389aa107dad4209b0045040c858ba1a"><th align="left" class="cellrowborder" valign="top" width="18.37%" id="mcps1.3.3.2.2.6.1.1"><p id="mrs_01_1143__en-us_topic_0000001173949608_ada955aaa871b46888194460784eefcf2">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.730000000000004%" id="mcps1.3.3.2.2.6.1.2"><p id="mrs_01_1143__en-us_topic_0000001173949608_a423c2138ade94c00b913e022f683da5b">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="7.5200000000000005%" id="mcps1.3.3.2.2.6.1.3"><p id="mrs_01_1143__en-us_topic_0000001173949608_a6a350fc6c7344879ab691f91fab9d5b8">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.69%" id="mcps1.3.3.2.2.6.1.4"><p id="mrs_01_1143__en-us_topic_0000001173949608_aa308d19977d844e391eb43ea6132cf3b">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.69%" id="mcps1.3.3.2.2.6.1.5"><p id="mrs_01_1143__en-us_topic_0000001173949608_a3148fed522044a7dafc36452d42048bc">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1143__en-us_topic_0000001173949608_r2ad5404beb8a453d8d48c13dd5c1cb15"><td class="cellrowborder" valign="top" width="18.37%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a710ac09622bb4584a4759c57ccc0217b">Condition logic connector</p>
</td>
<td class="cellrowborder" valign="top" width="54.730000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a99da0f99993b42238f10a8ef90d6e33e">Condition logic connector. The options include <span class="parmvalue" id="mrs_01_1143__en-us_topic_0000001173949608_p8e7c4df4325440cc899a5345fa2e1a81"><b>AND</b></span> and <span class="parmvalue" id="mrs_01_1143__en-us_topic_0000001173949608_p244c636b40e645008a64e9e06a5cdd2f"><b>OR</b></span>.</p>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a54b8d737a34d4510bf03f03fded32edf">enum</p>
</td>
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a857e1e32290a4428a9521b78314fd037">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a63e849c34e03439586e74ec74dd44aba">AND</p>
</td>
</tr>
<tr id="mrs_01_1143__en-us_topic_0000001173949608_r199b9711691148bdaf3271deda430ebf"><td class="cellrowborder" valign="top" width="18.37%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a921fe8d9dec84311b2ba275660e54917">Conditions</p>
</td>
<td class="cellrowborder" valign="top" width="54.730000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1143__en-us_topic_0000001173949608_a2aed6aafa7ff4d1b8d235fba5c04a4a3">Filter condition information:</p>
<ul id="mrs_01_1143__en-us_topic_0000001173949608_u249fb2fb948e463196c97cf02a5ff5cc"><li id="mrs_01_1143__en-us_topic_0000001173949608_l2b81f68c01b34f86a9c38adbb9ef0c15"><strong id="mrs_01_1143__en-us_topic_0000001173949608_b122717591266">input field name</strong>: Names of the input fields. Set this parameter to the names of the fields generated in the previous conversion step.</li><li id="mrs_01_1143__en-us_topic_0000001173949608_l3f344f6b3c60450daec059905df1cf48"><strong id="mrs_01_1143__en-us_topic_0000001173949608_b1251902342717">operator</strong>: Operator</li><li id="mrs_01_1143__en-us_topic_0000001173949608_l30fb8f9b821841128afee098dc7e9b00"><strong id="mrs_01_1143__en-us_topic_0000001173949608_b1418972522718">comparative value</strong>. You can directly enter the value of a field referenced in the <span class="parmvalue" id="mrs_01_1143__en-us_topic_0000001173949608_pecde0df456d84ac8a83594399b989402"><b>#{Existing field name}</b></span> format.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1143__en-us_topic_0000001173949608_afe3cdcc6532f444f94f358eb9514de13">map</p>
</td>
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1143__en-us_topic_0000001173949608_af311fc4df5c947be84fd791bc0d08072">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1143__en-us_topic_0000001173949608_ada5be8221af94951a159e84fb9c4aec9">None</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_1143__en-us_topic_0000001173949608_s5de0ba3ef6fe49be8f9e268e3322a9b6"><h4 class="sectiontitle">Data Processing Rule</h4><ul id="mrs_01_1143__en-us_topic_0000001173949608_u6b518c10ce3f40298cedeb068b3f56f9"><li id="mrs_01_1143__en-us_topic_0000001173949608_l0028087dc47a4f8f90e38e456baa9188">When the condition logic is <span class="parmvalue" id="mrs_01_1143__en-us_topic_0000001173949608_pbdd854f483f749809f2ac103f5768ec0"><b>AND</b></span>, if no filtering condition is added, all data becomes dirty data; if the original data meets all the added filtering conditions, the current line becomes dirty data.</li><li id="mrs_01_1143__en-us_topic_0000001173949608_l5896a89d293c458689193cf78d071539">When the condition logic is <span class="parmvalue" id="mrs_01_1143__en-us_topic_0000001173949608_p343c0506b2534732b8ab945bfc99aad0"><b>OR</b></span>, if no filter condition is added, all data becomes dirty data; if the original data meets any of the added filter conditions, the current line becomes dirty data.</li></ul>
</div>
<div class="section" id="mrs_01_1143__en-us_topic_0000001173949608_section14573192655018"><h4 class="sectiontitle">Example</h4><p id="mrs_01_1143__en-us_topic_0000001173949608_p205731326105019">Use the <span class="parmname" id="mrs_01_1143__en-us_topic_0000001173949608_parmname10573626115018"><b>CSV File Input</b></span> operator to generate two fields A and B.</p>
<p id="mrs_01_1143__en-us_topic_0000001173949608_p1157342685017">The following figure shows the source file.</p>
<p id="mrs_01_1143__en-us_topic_0000001173949608_p145731226125013"><span><img id="mrs_01_1143__en-us_topic_0000001173949608_image18573142616508" src="en-us_image_0000001295900064.jpg"></span></p>
<p id="mrs_01_1143__en-us_topic_0000001173949608_p2574192618505">Configure the <span class="parmname" id="mrs_01_1143__en-us_topic_0000001173949608_parmname9574172615014"><b>Filter Rows</b></span> operator to filter lines that contain test.</p>
<p id="mrs_01_1143__en-us_topic_0000001173949608_p1357472617502"><span><img id="mrs_01_1143__en-us_topic_0000001173949608_image8574152614506" src="en-us_image_0000001296059904.png"></span></p>
<p id="mrs_01_1143__en-us_topic_0000001173949608_p1357472616507">After the conversion, enter the original fields. The result is as follows:</p>
<p id="mrs_01_1143__en-us_topic_0000001173949608_p857482616500"><span><img id="mrs_01_1143__en-us_topic_0000001173949608_image17574102645014" src="en-us_image_0000001349059749.jpg"></span></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1130.html">Conversion Operators</a></div>
</div>
</div>