clearWindow() - trillium_quality - Latest

Trillium Director SDK Reference

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Quality
Version
Latest
ft:locale
en-US
Product name
Trillium Quality
ft:title
Trillium Director SDK Reference
Copyright
2024
First publish date
2008
ft:lastEdition
2024-10-18
ft:lastPublication
2024-10-18T15:24:49.097000

The clearWindow() method clears all candidate records in the current match window.    

Syntax

public void clearWindow(int handle,
                        int retCode[]);

Parameters

Name

Type

Use

Length

Description

handle

int

In

––

Handle to a Director matcher server.

retCode

int[ ]

Out

4

Error code that indicates status of method call.

Return Values

Refer to Return Values.

Example

TrilTGenClient testClient = new TrilTGenClient();
int[] retCode= new int[1];                // Return code and handle
int handle = 0;

char systemID;                            // System and Server ID for attach()
String serverName;
String[] matchFields = {"FirstName", "LastName", "MiddleName"};

String[] inputData = new String[3];
systemID = 'G';
String keyValue;
serverName = "RMatcher";
handle = testClient.openMatcherEx(systemID, serverName, retCode);

// Call the clearWindow() method before populating the match
window with records
testClient.clearWindow(handle, retCode);
// Error handling omitted

// Add three records to the match window
inputData[0] = "JOHN";
inputData[1] = "SMITH";
inputData[2] = "D";
keyValue = "1ST JOHN";
testClient.addToMatchWindow(handle, matchFields, inputData,
    keyValue, retCode);
inputData[0] = "JOHNATHAN";
inputData[1] = "SMITH";
inputData[2] = "DAVID";
keyValue = "2ND JOHN";
testClient.addToMatchWindow(handle, matchFields, inputData,
    keyValue, retCode);

inputData[0] = "J";
inputData[1] = "SMITH";
inputData[2] = "D";
keyValue = "3RD JOHN";
testClient.addToMatchWindow(handle, matchFields, inputData,
    keyValue, retCode);

// Match this record
inputData[0] = "JOHN";
inputData[1] = "SMITH";
inputData[2] = "";
testClient.matchCandidate(handle, matchFields, inputData, outKeys,
    outPats, retCode);

// Clear all candidates from match window to prepare for next match
testClient.clearWindow(handle, retCode);