<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How ArrayIndexing for tMemorizeRow work in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-ArrayIndexing-for-tMemorizeRow-work-in-talend/m-p/2276481#M52540</link>
    <description>&lt;P&gt;Suppose i have input data as below :-&lt;/P&gt; 
&lt;P&gt;Emp_id|Name|Month|Salary&lt;/P&gt; 
&lt;P&gt;101|Shameer|01|1000&lt;/P&gt; 
&lt;P&gt;101|Shameer|02|2000&lt;/P&gt; 
&lt;P&gt;101|Shameer|03|3000&lt;/P&gt; 
&lt;P&gt;101|Shameer|04|4000&lt;/P&gt; 
&lt;P&gt;101|Shameer|05|5000&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is my flow :-&lt;/P&gt; 
&lt;P&gt;tFileInputDelimited-&amp;gt;tSortRow-&amp;gt;tMemorizeRows-&amp;gt;tMap-&amp;gt;tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in tSortRow component -&amp;gt; we are sorting the record on column&amp;nbsp; Emp_id and Month in ascending order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;then tMemorizeRows below are the properties-&amp;gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;row count to memorize-&amp;gt;3&lt;/P&gt; 
&lt;P&gt;columns to memorize -&amp;gt; Emp_id&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;so My question is what will be the value of below global variable for tMemorizeRow component&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for below 3 scenarios:-&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1:- When i am fetching first record (101|Shameer|01|1000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2:- When i am fetching second record (101|Shameer|02|2000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3:- When i am fetching Third record (101|Shameer|03|3000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;4:- When i am fetching Third record (101|Shameer|04|4000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Above four scenarios will help me know how the Array for the memorized columns are assigned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Shameer&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:01:05 GMT</pubDate>
    <dc:creator>shameer1</dc:creator>
    <dc:date>2024-11-16T06:01:05Z</dc:date>
    <item>
      <title>How ArrayIndexing for tMemorizeRow work in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-ArrayIndexing-for-tMemorizeRow-work-in-talend/m-p/2276481#M52540</link>
      <description>&lt;P&gt;Suppose i have input data as below :-&lt;/P&gt; 
&lt;P&gt;Emp_id|Name|Month|Salary&lt;/P&gt; 
&lt;P&gt;101|Shameer|01|1000&lt;/P&gt; 
&lt;P&gt;101|Shameer|02|2000&lt;/P&gt; 
&lt;P&gt;101|Shameer|03|3000&lt;/P&gt; 
&lt;P&gt;101|Shameer|04|4000&lt;/P&gt; 
&lt;P&gt;101|Shameer|05|5000&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is my flow :-&lt;/P&gt; 
&lt;P&gt;tFileInputDelimited-&amp;gt;tSortRow-&amp;gt;tMemorizeRows-&amp;gt;tMap-&amp;gt;tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in tSortRow component -&amp;gt; we are sorting the record on column&amp;nbsp; Emp_id and Month in ascending order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;then tMemorizeRows below are the properties-&amp;gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;row count to memorize-&amp;gt;3&lt;/P&gt; 
&lt;P&gt;columns to memorize -&amp;gt; Emp_id&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;so My question is what will be the value of below global variable for tMemorizeRow component&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for below 3 scenarios:-&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1:- When i am fetching first record (101|Shameer|01|1000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2:- When i am fetching second record (101|Shameer|02|2000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3:- When i am fetching Third record (101|Shameer|03|3000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;4:- When i am fetching Third record (101|Shameer|04|4000)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[0])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[1])&lt;/P&gt; 
&lt;P&gt;(((Integer[])globalMap.get("tMemorizeRows_Emp_id"))[2])&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Above four scenarios will help me know how the Array for the memorized columns are assigned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Shameer&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-ArrayIndexing-for-tMemorizeRow-work-in-talend/m-p/2276481#M52540</guid>
      <dc:creator>shameer1</dc:creator>
      <dc:date>2024-11-16T06:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: How ArrayIndexing for tMemorizeRow work in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-ArrayIndexing-for-tMemorizeRow-work-in-talend/m-p/2276482#M52541</link>
      <description>&lt;P&gt;Hi Shameer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; I would recommend to try the below scenario mentioned for the component in the help document to see the results yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/BhKFvhAJHOci6KUzllNgvA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/BhKFvhAJHOci6KUzllNgvA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-ArrayIndexing-for-tMemorizeRow-work-in-talend/m-p/2276482#M52541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-24T07:21:31Z</dc:date>
    </item>
  </channel>
</rss>

