Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Custom Transformation
  5. Custom Transformation Functions
  6. Data Masking Transformation
  7. Data Masking Examples
  8. Expression Transformation
  9. External Procedure Transformation
  10. Filter Transformation
  11. HTTP Transformation
  12. Identity Resolution Transformation
  13. Java Transformation
  14. Java Transformation API Reference
  15. Java Expressions
  16. Java Transformation Example
  17. Joiner Transformation
  18. Lookup Transformation
  19. Lookup Caches
  20. Dynamic Lookup Cache
  21. Normalizer Transformation
  22. Rank Transformation
  23. Router Transformation
  24. Sequence Generator Transformation
  25. Sorter Transformation
  26. Source Qualifier Transformation
  27. SQL Transformation
  28. Using the SQL Transformation in a Mapping
  29. Stored Procedure Transformation
  30. Transaction Control Transformation
  31. Union Transformation
  32. Unstructured Data Transformation
  33. Update Strategy Transformation
  34. XML Transformations

Transformation Guide

Transformation Guide

Maximum Number of Rows Functions

Maximum Number of Rows Functions

By default, the Integration Service allows a maximum number of rows in an input block and an output block. However, you can change the maximum number of rows allowed in an output block.
Use the INFA_CTAGetInputNumRowsMax() and INFA_CTAGetOutputNumRowsMax() functions to determine the maximum number of rows in input and output blocks. Use the values these functions return to determine the buffer size if the procedure needs a buffer.
You can set the maximum number of rows in the output block using the INFA_CTASetOutputRowMax() function. You might use this function if you want the procedure to use a larger or smaller buffer.
You can only call these functions in an initialization function.
PowerCenter provides the following functions to determine and set the maximum number of rows in blocks:
  • INFA_CTAGetInputNumRowsMax().
    Use this function to determine the maximum number of rows allowed in an input block.
    Use the following syntax:
    IINT32 INFA_CTAGetInputRowMax( INFA_CT_INPUTGROUP_HANDLE inputgroup );
    The following table describes the argument for this function:
    Argument
    Datatype
    Input/
    Output
    Description
    inputgroup
    INFA_CT_INPUTGROUP_HANDLE
    Input
    Input group handle.
  • INFA_CTAGetOutputNumRowsMax().
    Use this function to determine the maximum number of rows allowed in an output block.
    Use the following syntax:
    IINT32 INFA_CTAGetOutputRowMax( INFA_CT_OUTPUTGROUP_HANDLE outputgroup );
    The following table describes the argument for this function:
    Argument
    Datatype
    Input/
    Output
    Description
    outputgroup
    INFA_CT_OUTPUTGROUP_HANDLE
    Input
    Output group handle.
  • INFA_CTASetOutputRowMax().
    Use this function to set the maximum number of rows allowed in an output block.
    Use the following syntax:
    INFA_STATUS INFA_CTASetOutputRowMax( INFA_CT_OUTPUTGROUP_HANDLE outputgroup, INFA_INT32 nRowMax );
    The following table describes the arguments for this function:
    Argument
    Datatype
    Input/
    Output
    Description
    outputgroup
    INFA_CT_OUTPUTGROUP_HANDLE
    Input
    Output group handle.
    nRowMax
    INFA_INT32
    Input
    Maximum number of rows you want to allow in an output block.
    You must enter a positive number. The function returns a fatal error when you use a non-positive number, including zero.

0 COMMENTS

We’d like to hear from you!