Kinetica   C#   API  Version 7.2.3.1
Example.ShardKeyExample Class Reference

Example demonstrating shard key usage with RecordRetriever for multi-head retrieval. More...

Classes

class  ShardedRecord
 Record class with multiple shard key columns demonstrating allowed shard key types. More...
 

Static Public Member Functions

static async Task RunAsync (string serverUrl, string username, string password)
 Runs the shard key example demonstrating RecordRetriever for multi-head retrieval. More...
 

Detailed Description

Example demonstrating shard key usage with RecordRetriever for multi-head retrieval.

Shard keys determine how data is distributed across worker nodes. When retrieving records by shard key using RecordRetriever, requests are routed directly to the appropriate worker node, enabling efficient multi-head retrieval.

Allowed shard key types:

  • INT (with INT8, INT16 properties)
  • LONG (with TIMESTAMP property)
  • STRING (with CHAR1-CHAR256, IPV4, UUID, DATE, TIME, DATETIME properties)

Note: FLOAT, DOUBLE, DECIMAL, and nullable columns cannot be shard keys.

Definition at line 24 of file ShardKeyExample.cs.

Member Function Documentation

◆ RunAsync()

static async Task Example.ShardKeyExample.RunAsync ( string  serverUrl,
string  username,
string  password 
)
inlinestatic

Runs the shard key example demonstrating RecordRetriever for multi-head retrieval.

Definition at line 88 of file ShardKeyExample.cs.


The documentation for this class was generated from the following file: