<?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: How to create a custom java class in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221275#M15347</link>
    <description>Thanks Gabriel.
&lt;BR /&gt;I would like to load the product configuration once and later access that information in processing documents which belongs to a product.Number of records in the document table is very high and number of products are few.
&lt;BR /&gt;So I did not want to access the product table for each record in the documents table. I will try to implement this using look ups. This solution can work specially if I can get the look up records loaded only once.</description>
    <pubDate>Thu, 12 Jul 2012 00:47:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-12T00:47:49Z</dc:date>
    <item>
      <title>How to create a custom java class</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221270#M15342</link>
      <description>I would like to read the product configurations once, at job start up and store them in a ?ProductConfiguration? custom objects. What would the recommended best practice to achieve this?  Should I create a ?ProductConfiguration? class as a new  routine and store that as a context variable?</description>
      <pubDate>Sat, 16 Nov 2024 12:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221270#M15342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom java class</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221271#M15343</link>
      <description>Hi Sujee,
&lt;BR /&gt;maybe you could use the context variable directly to store values (for a job's lifespan)..
&lt;BR /&gt;Gabriel</description>
      <pubDate>Mon, 09 Jul 2012 09:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221271#M15343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-09T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom java class</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221272#M15344</link>
      <description>Is this for a Job or a Route?  If it is for a Job (designed in Integration perspective) then take a look at tContextLoad in the Compenent Reference Guide.  It should do what you want.</description>
      <pubDate>Mon, 09 Jul 2012 11:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221272#M15344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-09T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom java class</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221273#M15345</link>
      <description>Hi Gabriel/Edward,&lt;BR /&gt;Thanks for the replies. This is for a job and the product has different attributes that I like to load once at job start up and then refer later.  The job is concerned about multiple products. So I was wondering whether I can create a custom java class (e.g. ProductConfiguration) and store a collection of this in the context.&lt;BR /&gt;I just got started with talend and routines seems to be the way in talend to create reusuable functions.&lt;BR /&gt;Is these also a way to define a custom class? then my problem will be solved.</description>
      <pubDate>Tue, 10 Jul 2012 00:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221273#M15345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-10T00:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom java class</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221274#M15346</link>
      <description>Hi Sujee, 
&lt;BR /&gt;this is another use case 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; As far I understand, you want to cache product data to enrich/update/compare other passed data in your job? For that you could use a tMap component with lookups, while if there's a reasonable amount of product records, the records can be cached. In the tMap component you can specify if you want to load the lookup records once, for every row, if cache them, .. 
&lt;BR /&gt; See Talend tutorials 
&lt;BR /&gt; 
&lt;A href="http://www.talendforge.org/tutorials/tutorial.php?idTuto=9" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/tutorials/tutorial.php?idTuto=9&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://techblog.appirio.com/2009/12/performing-lookups-and-transformations.html" rel="nofollow noopener noreferrer"&gt;http://techblog.appirio.com/2009/12/performing-lookups-and-transformations.html&lt;/A&gt; 
&lt;BR /&gt; or you can search for other tutorials as well. 
&lt;BR /&gt;if we missed the point, then you rather explain you use case, it's better to follow the Talend tool's practice than fight against it. 
&lt;BR /&gt;Have fun 
&lt;BR /&gt; Gabriel</description>
      <pubDate>Tue, 10 Jul 2012 08:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221274#M15346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-10T08:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom java class</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221275#M15347</link>
      <description>Thanks Gabriel.
&lt;BR /&gt;I would like to load the product configuration once and later access that information in processing documents which belongs to a product.Number of records in the document table is very high and number of products are few.
&lt;BR /&gt;So I did not want to access the product table for each record in the documents table. I will try to implement this using look ups. This solution can work specially if I can get the look up records loaded only once.</description>
      <pubDate>Thu, 12 Jul 2012 00:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-custom-java-class/m-p/2221275#M15347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T00:47:49Z</dc:date>
    </item>
  </channel>
</rss>

