openMatcher() - trillium_quality - Latest

Trillium Director SDK Reference

Product type
Software
Portfolio
Verify
Product family
Trillium™ software
Product
Trillium™ software > 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
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

The openMatcher() method initializes a session between a client application and a Director matcher server.

When openMatcher() is called, the maximum window size is returned from the matcher server to TGenClient. If a project has multiple Relationship Linker steps and each step specifies a different maximum window size, the matcher server returns the smallest value to the client.

Refer to addToMatchWindow()   and setWindowSize()  for additional information on setting and checking the maximum window size.

Syntax

public void openMatcher(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();

// Return code and handle
int[] retCode= new int[1];
int handle = 0;

// System and Server ID for attach()
char systemID = ‘G’;
String serverName = “RMatcher”;

// openMatcher() requires attach to server using attach()
handle = testClient.attach(systemID, serverName, retCode);

if (retCode[0] == 0) {

        // Initialize session with matcher server using openMatcher()
        testClient.openMatcher(handle, retCode); 
        if (retCode[0] == 0) {
        
            // Perform relevant processing
        }
        // Close the matcher server
        testClient.closeMatcher(handle, retCode);

        // closeMatcher() requires release of server using release()
        testClient.release(handle, retCode);
}