clearWindow() - 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 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);