我要评分
获取效率
正确性
完整性
易理解

Calling the PSM Operator

  1. Configure KCAL settings, such as communication APIs and node IDs (node 0: server, and node 1: client), through DataGuard APIs.
  2. Initialize the function group for the PSM operator. This function group includes all the public APIs for the PSM operator.
  3. Apply the settings to KCAL.
  4. Set the information about all nodes.

    Compute node 0 (server)

    1. Call the offlineCalculate function API to construct bucket data, which is used for query on the client in the online phase.
    2. Call the serverCalculate function API to respond to a query from the client and return the query result.

    Compute node 1 (client)

    1. Once the offline calculation on the server is complete, call the clientCalculate function API and enter data for query.
    2. Obtain the final result.

If either node (compute node 0 or 1) returns an error code when calling an API, the node needs to use a task scheduling mechanism to notify the other node to terminate the service process. For example, if compute node 1 returns an error code when calling the makeShare API and compute node 0 is waiting to receive shares, compute node 1, instead of the SDK itself, needs to notify compute node 0 to stop receiving.