setWindowSize() - trillium_quality - 17.2

Trillium Director SDK Reference Guide

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Quality
Version
17.2
Language
English
Product name
Trillium Quality
Title
Trillium Director SDK Reference Guide
Topic type
Overview
Administration
Configuration
Installation
Reference
How Do I
First publish date
2008

The setWindowSize() method informs the TGenClient library of the maximum size of a match window and what to do if the size is exceeded. This value overrides the maximum window size set in the Relationship Linker’s settings file. The default maximum window size is 50,000 records.

setWindowSize() is not used with SAP clients. Window size can be controlled through the SAP server.

Syntax

int setWindowSize (int handle, int nMaxWinSize, 
                        boolean bFixedSize)

Parameters

Name

Type

Use

Length

Description

handle

int

In

4

Handle of a matcher server, returned by attach().

nMaxWinSize

int

In

4

The maximum number of records for the match window.

bFixedSize

boolean

In

1

Specifies what to do if the number of records added to the match window is greater than the number specified in nMaxWinSize. Valid options are:

true = An error will be returned if more records are added to the match window than the number specified in nMaxWinSize.

false = No error code will be returned and processing will continue.

Return Values

A returned value of 0 indicates that the window size was successfully set. For any non-zero returned value, refer to Return Values for a description of the error.

Example

int handle = 0;
TrilTGenClient client = new TrilTGenClient();
char systemID = 'R';
String serverName = "Cleanser";
int[] retCode= new int[1];
handle = _client.attach(systemID, serverName, retCode);
int nRC = setWindowSize(pHanlde, 100, true);