clearWindow() - trillium_quality - Latest

Référence du SDK Trillium Director

Product type
Logiciels
Portfolio
Verify
Product family
Trillium™ software
Product
Trillium™ software > Trillium™ Quality
Version
Latest
ft:locale
fr-FR
Product name
Trillium Quality
ft:title
Référence du SDK Trillium Director
Copyright
2024
First publish date
2008
ft:lastEdition
2025-06-18
ft:lastPublication
2025-06-18T10:58:47.008000
L1_Product_Gateway
Verify
L2_Product_Segment
Data Quality
L3_Product_Brand
Precisely Trillium
L4_Investment_Segment
Legacy DQ
L5_Product_Group
Legacy DQ - Application
L6_Product_Name
Trillium Quality

La méthode clearWindow() efface tous les enregistrements candidats dans la fenêtre de correspondance actuelle.    

Syntaxe

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

Paramètres

Nom

Type

Utilisation

Longueur

Description

handle

entier

Entrée

––

Handle vers un serveur de programme de correspondance Director.

retCode

int[ ]

Sortie

4

Code d'erreur indiquant le statut de l'appel de la méthode.

Valeurs renvoyées

Reportez-vous à la section Valeurs renvoyées.

Exemple

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