forked from docs/doc-exports
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>
55 lines
8.3 KiB
HTML
55 lines
8.3 KiB
HTML
<a name="mrs_01_1139"></a><a name="mrs_01_1139"></a>
|
|
|
|
<h1 class="topictitle1">EL Operation</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_1139__en-us_topic_0000001219149417_s6c1044b499ba4055a6ecbf3af8a6b755"><h4 class="sectiontitle">Overview</h4><p id="mrs_01_1139__en-us_topic_0000001219149417_a6eba13170aee4bd3ae693c7e9a944ef0">The <span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_p5b1ca4831f6a488d96be1580a1bd6d71"><b>EL Operation</b></span> operator calculates field values and generates new fields. The algorithms that are currently supported include md5sum, sha1sum, sha256sum, and sha512sum.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1139__en-us_topic_0000001219149417_s2e36ff3fd7c34819a2ddb984e1fe5110"><h4 class="sectiontitle">Input and Output</h4><ul id="mrs_01_1139__en-us_topic_0000001219149417_u391c628f7a93407a80d8e7139138ef92"><li id="mrs_01_1139__en-us_topic_0000001219149417_le5c5c5b6eb894772a06e8f8488c39242">Input: fields to be converted</li><li id="mrs_01_1139__en-us_topic_0000001219149417_l213d9f19f81846a0bb8908618fc7b93c">Output: fields generated after the EL expression conversion</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1139__en-us_topic_0000001219149417_s9fa6d3f5d6c94421bcda5d7e6d4a9f23"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1139__en-us_topic_0000001219149417_t992bd361538b48528bb3c637dac47fab" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Operator parameter description</caption><thead align="left"><tr id="mrs_01_1139__en-us_topic_0000001219149417_r5299f9b5d3704757901789cc81155359"><th align="left" class="cellrowborder" valign="top" width="18.37%" id="mcps1.3.3.2.2.6.1.1"><p id="mrs_01_1139__en-us_topic_0000001219149417_a723dd3d74e4e41cc83f90629a35f657d">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_1139__en-us_topic_0000001219149417_a4512bf159e9d4f68937e5525ed6916f9">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_1139__en-us_topic_0000001219149417_aa0adadd6e5fa492ea4d197d83bd810e0">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_1139__en-us_topic_0000001219149417_acbb9840209ab47c4bf305fd042b61ae6">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_1139__en-us_topic_0000001219149417_a6a5c702e96dc4cf887cd81d35a3fadb5">Default Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1139__en-us_topic_0000001219149417_r01d75971254e4c858be06fd061446960"><td class="cellrowborder" valign="top" width="18.37%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1139__en-us_topic_0000001219149417_af73955f89f2047a1a67bd7978eb48dcb">Field generated by el operation</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.730000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1139__en-us_topic_0000001219149417_aec663ac9ea5b4926b10f52cc5c4d32a8">EL expression configuration:</p>
|
|
<ul id="mrs_01_1139__en-us_topic_0000001219149417_u3c8a9c6415ca4c29a7714dafc0d97a43"><li id="mrs_01_1139__en-us_topic_0000001219149417_lcb189087015f48e080f1e42cc7436bc7"><span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_p8f936071798b45b880b47de0a5a501c4"><b>name</b></span>: Name of the expression output result.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_l1323f26ad3674f9dbd06b902435a3648"><span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_pde503eec9b0046a9bed2ca559b08befa"><b>el expression</b></span>: Expression. The format is <i><span class="varname" id="mrs_01_1139__en-us_topic_0000001219149417_v2a005e2d91d946e1b2ae73f5c3c4c4d3">expression name(input field name,value indicating whether to use lower case letters to indicate the output result)</span></i>, for example, md5sum(fieldname,true).<ul id="mrs_01_1139__en-us_topic_0000001219149417_u18338f42fb284adb89e6a1ca07563877"><li id="mrs_01_1139__en-us_topic_0000001219149417_l80cc1c1414e3416788676105b141801e">md5sum: generates md5 values.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_la97270b0ca4e4e0f84309f3c41288f69">sha1sum: generates sha1 values.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_lfe3c428f78904f1cbe608f257272f9c4">sha256sum: generates sha256 values.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_l88d479ec8e194866bc04df25e2abe2f2">sha512sum: generates sha512 values.</li></ul>
|
|
</li><li id="mrs_01_1139__en-us_topic_0000001219149417_le09790d3bf084f858906e70933167a65"><span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_pccb75cd57dfb42e79b7e05b8156a5f1e"><b>type</b></span>: Type of the expression output result. <span class="parmvalue" id="mrs_01_1139__en-us_topic_0000001219149417_pa4a1e43d281e4141b8705674b0c25908"><b>VARCHAR</b></span> is recommended.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_l01ac5d0d1cad4a12bf2992f874217433"><span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_pcdf19111ef0d4f4e9b9c9318ac430217"><b>date format</b></span>: Format of the expression output result.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_lb9cfcc1ce24446dc83cdafe0eabf6178"><span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_p1f0efe4ed4f347adb854cb881dc3c5d4"><b>length</b></span>: Length of the expression output result.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1139__en-us_topic_0000001219149417_a42132bacee0d402a86edf23f6f0537d1">map</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1139__en-us_topic_0000001219149417_a3bda4439a1e24de08a78d126d3ef8173">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1139__en-us_topic_0000001219149417_a1b4d12bed1eb44138ded22e7539a233f">None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_1139__en-us_topic_0000001219149417_s589f839a1a3e4f45ba1d7c6fbb8d7571"><h4 class="sectiontitle">Data Processing Rule</h4><ul id="mrs_01_1139__en-us_topic_0000001219149417_u71fca59838294e3aaf284c36056e86b7"><li id="mrs_01_1139__en-us_topic_0000001219149417_le7b2d24ee7594e07bc78dc377a2a9f90">The operator calculates fields values and generates new fields.</li><li id="mrs_01_1139__en-us_topic_0000001219149417_ld3aa7458288b4c6f965d017de4fbb250">The type of the new fields can only be VARCHAR.</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1139__en-us_topic_0000001219149417_s147ab097100e4185b57e25080664a87b"><h4 class="sectiontitle">Example</h4><p id="mrs_01_1139__en-us_topic_0000001219149417_a722a4516c4b24b5ea0d86c886d9d9d5d">Use the <span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_p8f7c5d71564b41caa63171916b2e8b34"><b>CSV File Input</b></span> operator to generate fields A and B.</p>
|
|
<p id="mrs_01_1139__en-us_topic_0000001219149417_a314256fe7c60435188f229f5bba07aeb">The following figure shows the source file.</p>
|
|
<p id="mrs_01_1139__en-us_topic_0000001219149417_a548562d1571d4eb9b3c883f037aa0277"><span><img id="mrs_01_1139__en-us_topic_0000001219149417_i702bd32374ab471cbc4b5692d173863d" src="en-us_image_0000001296219308.jpg"></span></p>
|
|
<p id="mrs_01_1139__en-us_topic_0000001219149417_ad1dc56333dbf44139b56a1547159fd17">Configure the <span class="parmname" id="mrs_01_1139__en-us_topic_0000001219149417_p9d9472ba38714c47941221359d1b994b"><b>EL Operation</b></span> operator to generate fields C, D, E, and F.</p>
|
|
<p id="mrs_01_1139__en-us_topic_0000001219149417_a3ecb07870a8e4e858aca08260558e0d8"><span><img id="mrs_01_1139__en-us_topic_0000001219149417_ib8ae7e2328c248d1b54c37346f55ede3" src="en-us_image_0000001348739701.png"></span></p>
|
|
<p id="mrs_01_1139__en-us_topic_0000001219149417_afe1c5d1fc4e54e8193b3e263407f85e6">Six fields are generated, as shown in the following figure.</p>
|
|
<p id="mrs_01_1139__en-us_topic_0000001219149417_ab6629403665e437daaf87fb6e07f168b"><span><img id="mrs_01_1139__en-us_topic_0000001219149417_id9897d6ff37141b49e0b5d26a597b473" src="en-us_image_0000001296059676.png"></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>
|
|
|