Go Back   CORTEX Forums > Best Practices > Subject Matter Expertise > Data Integration Forum > Data Integration News Feeds
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Re-Introducing UDJC

This is a discussion on Re-Introducing UDJC within the Data Integration News Feeds forums, part of the Data Integration Forum category; Dear Kettle fans, Daniel & I had a lot of fun in Orlando last week. Among other things we worked on the User Defined Java Class (UDJC) step.* If you ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 28th January 2010, 08:23 AM   #1
News Bot
 
Join Date: Nov 2007
Posts: 15,067
Latest News Headlines is on a distinguished road
Post Re-Introducing UDJC

Dear Kettle fans,

Daniel & I had a lot of fun in Orlando last week. Among other things we worked on the User Defined Java Class (UDJC) step.* If you have a bit of Java Experience, this step allows you to quickly write your own plugin in a step. This step is available in recent builds of Pentaho Data Integration (Kettle) version 4.

Now, how does this work?* Well, let’s take Roland Bouman’s example : the calculation of the the date of Easter.* In this blog post, Roland explains how to calculate Easter in MySQL and Kettle using JavaScript.* OK, so what if you want this calculation to be really fast in Kettle?* Well, then you can turn to pure Java to do the job…

import java.util.*;private int yearIndex;private Calendar calendar;public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException{Object[] r=getRow();if (r==null){setOutputDone();return false;}if (first) {yearIndex = getInputRowMeta().indexOfValue(getParameter("YEAR"));if (yearIndex
Latest News Headlines is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use enterprise prediction markets to minimize risks when introducing new produ admin Prediction Markets News Feeds 0 27th November 2009 03:32 AM
Introducing "Applied Freakonomics" admin Prediction Markets News Feeds 0 22nd November 2009 11:49 AM
Introducing the new analysis-one website! EIS-One analysis-one 0 26th June 2009 10:27 AM


All times are GMT +11. The time now is 06:14 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO