talend - dev - convert a byte[] to row

One Star

talend - dev - convert a byte[] to row

Hello,
I want to create a component that use a java method returning a byte array. I want that component have a out row connection, to be able to branch other component, eg : tLogRow.
If someone have an idea the way to convert that byte array for talend row connection please share 
Thanks
One Star

Re: talend - dev - convert a byte[] to row

I guess this appends between the _begin.javajet & the _main.javajet.
Ten, for each byte[] I get from the database, I have to extract all field. Then I have to transform it to String, and parse the string to get the correct output type.
A split on the String can give me all the columns, and then I can get the node.outgoing format and try to format it.
This represents some work, Acutally this is to create 2 components alias tPostgresqlBulkSTDIN & tPostgresqlBulkSTDOUT that could replace tPostgresqlOutput & tPostgresqlInput. I need to create/extract those bytes array to transform them on the fly as flow.
One Star

Re: talend - dev - convert a byte[] to row

Done : Ive created the tPostgresqlBulkInput. This one works for now 2.5 times faster than tPostgresqlInput. It captures/parses the STDOUT, from posgresql COPY function and transforms it as a classical row.
(only for integer/date/string field for now)
Next step will be tPostgresqlBulkOutput, taking a row connection as input :
- Bulk Insert
- Bulk Update
- Bulk Insert or update
- Bulk Delete
- Bulk Select with Join
(github/parisni)

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now