Monday, March 26, 2012

PrimeOutput : difference between 'Output' and 'output buffer'

When overriding the PrimeOutput method in a custom component, you get as parameters the outputIDs and the output buffers (of type PipelineBuffer). using the outputIDs you can get IDTSOutput90 outputs.

As I interpret things, each output is associated with one output buffer. When you want to output rows, you add rows to the buffer. But what do you use the output (IDTSOutput90) for?

Regards,
HenkGood question. I'm keen to know the answer to this too.

-Jamie|||If you have more than one output on your component then you can use the order of the IDs and buffers (they are in the same order) to determine which buffer goes with which output. Obviously, there are other ways to do this but this makes it simple.

HTH,
Matt|||That was clear to me Matt, but what do you need an output for?|||Henk,

Maybe you have already come up with a answer, since there was no proper answer in the Thread, I will mention what I think.

IDTSOutput90 is used to Specify the MetaData of that particular output, using that Interface its possible to give the output columns' {Field}Name , Description, DataType, Length , etc..... which are the metadata of that Output.

The metadata will have to be specified if you are adding new columns to the Output, or else the metadata will be retrived by the earlier component.

When adding to the output buffer, the values will have to adhere to the metadata in the IDTSOutput90.

Hope this is the answer to your Question

Nilushan,sql

No comments:

Post a Comment