<?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 Re: [resolved] How to take the value from tHashInput component ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287808#M61356</link>
    <description>Client asked Talend to be included in architecture. They want to be able to change some things, so I have to use Talend.&lt;BR /&gt;Do you know maybe how I can take values from tMap in Java application? Is there any way to do it?&lt;BR /&gt;&lt;FONT size="2"&gt;I just tried to find some getter of tMap in Talend object but without success.&lt;/FONT&gt;</description>
    <pubDate>Mon, 22 Sep 2014 16:08:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-22T16:08:46Z</dc:date>
    <item>
      <title>[resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287799#M61347</link>
      <description>Hi,
&lt;BR /&gt;which options we have when we want to fetch value (one db table record fetched using tMysqlInput) from tHashInput component when Talend Job is started in Java application?
&lt;BR /&gt;I know that we can store that record in some CSV file for example using tFileOutputDelimited and parse the file later, but is there any other options how can fetch this value in Java application without writing record in the file first?
&lt;BR /&gt;If it is possible, providing small Java snippet of fetching DB record which is stored in tHashInput would be very helpful.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Nenad</description>
      <pubDate>Sat, 16 Nov 2024 11:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287799#M61347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287800#M61348</link>
      <description>Hi,
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;but is there any other options how can fetch this value in Java application without writing record in the file first?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Do you want the Data write model as "Cache in Memory" mentioned in component 
&lt;A href="https://help.talend.com/search/all?query=tHashOutput&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:/tHashOutput&lt;/A&gt;?
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 22 Sep 2014 11:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287800#M61348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T11:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287801#M61349</link>
      <description>Hi Sabrina, 
&lt;BR /&gt;thank you for your answer.&amp;nbsp; 
&lt;BR /&gt;I am already using tHashOutput component to store data in memory and after that tHashInput to read data from memory. This job I started from Java application. But missing part for me is 
&lt;U&gt;how I can fetch that data from tHashInput component in Java application&lt;/U&gt; 
&lt;U&gt;, is there any method on job object that I can use to fetch that data?&lt;/U&gt; 
&lt;BR /&gt;Please note that I am new in Talend and this is my first Talend job. Basically I am reading record from MySQL DB using tMysqlInput , store that result in memory using tHashOutput, fetching that using tHashInput and loging result using tLogRow component. I will attach my job to this post. If you see something that is not logical in design please let me know. 
&lt;BR /&gt; 
&lt;B&gt;So the question is how I can read tHashInput data in Java application? Please give me example if it is possible.&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAyD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133232iC561E310EE2AA6B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAyD.png" alt="0683p000009MAyD.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Nenad</description>
      <pubDate>Mon, 22 Sep 2014 11:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287801#M61349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287802#M61350</link>
      <description>Hi all,&lt;BR /&gt;does anybody has solution for this case?&lt;BR /&gt;Thanks,&lt;BR /&gt;Nenad</description>
      <pubDate>Mon, 22 Sep 2014 13:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287802#M61350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T13:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287803#M61351</link>
      <description>What problems are you having with your job?</description>
      <pubDate>Mon, 22 Sep 2014 13:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287803#M61351</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2014-09-22T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287804#M61352</link>
      <description>Hi janhess,
&lt;BR /&gt;I can start job and in the logs I see results, but how I can take these records in Java application?
&lt;BR /&gt;I want to take db record and place it in some Map to be able to process it later? What is the right way to do it?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Nenad</description>
      <pubDate>Mon, 22 Sep 2014 13:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287804#M61352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287805#M61353</link>
      <description>just join the tHashInput to a tMap but it would be easier to link the dbinput to a tMap</description>
      <pubDate>Mon, 22 Sep 2014 15:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287805#M61353</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2014-09-22T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287806#M61354</link>
      <description>After tHashInput connection to tMap, how I can fetch that Map in Java code?&lt;BR /&gt;I am starting job like this:&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"&gt;FetchDocuments mySQLConnectorJob = new FetchDocuments();&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"&gt;mySQLConnectorJob.runJob(new String[]{});&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 22 Sep 2014 15:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287806#M61354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T15:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287807#M61355</link>
      <description>Why not just get the data in the java code?</description>
      <pubDate>Mon, 22 Sep 2014 15:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287807#M61355</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2014-09-22T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287808#M61356</link>
      <description>Client asked Talend to be included in architecture. They want to be able to change some things, so I have to use Talend.&lt;BR /&gt;Do you know maybe how I can take values from tMap in Java application? Is there any way to do it?&lt;BR /&gt;&lt;FONT size="2"&gt;I just tried to find some getter of tMap in Talend object but without success.&lt;/FONT&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287808#M61356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T16:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287809#M61357</link>
      <description>Hi all,&lt;BR /&gt;I found the way to store values from tHashInput component to &lt;FONT color="#3333ff"&gt;globalMap &lt;/FONT&gt;object and to fetch these values in Java application.&lt;BR /&gt;So after tHashInput component I put tJavaRow component. In tJavaRow component I created new HashMap and inside that map I put db table record. After that I put that HashMap instance to &lt;FONT color="#3333ff"&gt;globalMap&lt;/FONT&gt;&amp;nbsp;in the same jJavaRow component.&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;//Instantiate metadata Map&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;java.util.Map&amp;lt;java.lang.String, java.lang.Object&amp;gt; docMetadata = new java.util.HashMap&amp;lt;java.lang.String, java.lang.Object&amp;gt;();&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;//Fetch document metadata and put it in the Map&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;docMetadata.put("documentID", metadata1.DocumentID);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;docMetadata.put("documentName", metadata1.DocumentName);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;docMetadata.put("creator", metadata1.Creator);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;//Put metadata in global Map&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;globalMap.put("docMetadata", docMetadata);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;metadata1&lt;/FONT&gt; is connection name from tHashInput component to tJava component.&lt;BR /&gt;When I started job in Java application I fetched &lt;FONT color="#3333ff"&gt;globalMap&lt;/FONT&gt;&amp;nbsp;using Java reflection.</description>
      <pubDate>Tue, 23 Sep 2014 14:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287809#M61357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-23T14:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287810#M61358</link>
      <description>Hi, &lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Thanks for posting that you resolved it by yourself. &lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Sabrina&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 24 Sep 2014 07:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287810#M61358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-24T07:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287811#M61359</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hi all,&lt;BR /&gt;I found the way to store values from tHashInput component to &lt;FONT color="#3333ff"&gt;globalMap &lt;/FONT&gt;object and to fetch these values in Java application.&lt;BR /&gt;So after tHashInput component I put tJavaRow component. In tJavaRow component I created new HashMap and inside that map I put db table record. After that I put that HashMap instance to &lt;FONT color="#3333ff"&gt;globalMap&lt;/FONT&gt;&amp;nbsp;in the same jJavaRow component.&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;//Instantiate metadata Map&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;java.util.Map&amp;lt;java.lang.String, java.lang.Object&amp;gt; docMetadata = new java.util.HashMap&amp;lt;java.lang.String, java.lang.Object&amp;gt;();&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;//Fetch document metadata and put it in the Map&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;docMetadata.put("documentID", metadata1.DocumentID);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;docMetadata.put("documentName", metadata1.DocumentName);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;docMetadata.put("creator", metadata1.Creator);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;//Put metadata in global Map&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;globalMap.put("docMetadata", docMetadata);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3333ff"&gt;metadata1&lt;/FONT&gt; is connection name from tHashInput component to tJava component.&lt;BR /&gt;When I started job in Java application I fetched &lt;FONT color="#3333ff"&gt;globalMap&lt;/FONT&gt;&amp;nbsp;using Java reflection.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;could you explain step by step the procedure that you used with screenshot please?&amp;nbsp;</description>
      <pubDate>Fri, 03 Oct 2014 12:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287811#M61359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-03T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to take the value from tHashInput component ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287812#M61360</link>
      <description>Could you please explain with the screenshots so that it will be easy to understand.</description>
      <pubDate>Thu, 21 Feb 2019 19:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-take-the-value-from-tHashInput-component/m-p/2287812#M61360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-21T19:48:39Z</dc:date>
    </item>
  </channel>
</rss>

