Skip to main content

Object that permits efficient retrieval of records from GPUdb, with support for multi-head access and HA failover. More…

Public Member Functions

 RecordRetriever (Kinetica kdb, string table_name, KineticaType ktype, WorkerList? workers=null)
 Create a RecordRetriever object with the given parameters.
 
GetRecordsResponse< T > getRecordsByKey (T record, string? expression=null)
 Retrieves records for a given shard key, optionally further limited by an additional expression.
 
 RecordRetriever (Kinetica kdb, string table_name, KineticaType ktype, WorkerList? workers=null)
 Create a RecordRetriever object with the given parameters.
 
GetRecordsResponse< T > getRecordsByKey (T record, string? expression=null)
 Retrieves records for a given shard key, optionally further limited by an additional expression.
 

Properties

Kinetica KineticaDB [get]
 Gets the Kinetica connection.
 
string TableName [get]
 Gets the table name.
 
int NumClusterSwitches [get]
 Gets the number of cluster switches due to HA failover.
 
int HARingSize [get]
 Gets the HA ring size.
 

Detailed Description

Object that permits efficient retrieval of records from GPUdb, with support for multi-head access and HA failover.

RecordRetriever instances are thread safe and may be used from any number of threads simultaneously.

This implementation matches the Rust RecordRetriever with full HA support.

Template Parameters
TThe type of object being retrieved.
Type Constraints
T :new() 

Definition at line 16 of file RecordRetriever.cs.

Member Function Documentation

◆ getRecordsByKey() [1/2]

GetRecordsResponse< T > kinetica.RecordRetriever< T >.getRecordsByKey (Trecord,
string?expression = null )
inline

Retrieves records for a given shard key, optionally further limited by an additional expression.

All records matching the key and satisfying the expression will be returned, up to the system-defined limit. For multi-head mode the request will be sent directly to the appropriate worker.

Parameters
recordThe record based on whose shard column values records will be fetched from the table.
expressionAn optional expression. Default is null.
Returns
A GetRecordsResponse object with the decoded retrieved values.

Definition at line 363 of file RecordRetriever.cs.

◆ getRecordsByKey() [2/2]

GetRecordsResponse< T > kinetica.RecordRetriever< T >.getRecordsByKey (Trecord,
string?expression = null )
inline

Retrieves records for a given shard key, optionally further limited by an additional expression.

All records matching the key and satisfying the expression will be returned, up to the system-defined limit. For multi-head mode the request will be sent directly to the appropriate worker.

Parameters
recordThe record based on whose shard column values records will be fetched from the table.
expressionAn optional expression. Default is null.
Returns
A GetRecordsResponse object with the decoded retrieved values.

Definition at line 363 of file RecordRetriever.cs.

◆ RecordRetriever() [1/2]

kinetica.RecordRetriever< T >.RecordRetriever (Kineticakdb,
stringtable_name,
KineticaTypektype,
WorkerList?workers = null )
inline

Create a RecordRetriever object with the given parameters.

Parameters
kdbThe Kinetica connection.
table_nameThe table name to retrieve from.
ktypeThe KineticaType for the table.
workersOptional worker list for multi-head retrieval.

Definition at line 79 of file RecordRetriever.cs.

◆ RecordRetriever() [2/2]

kinetica.RecordRetriever< T >.RecordRetriever (Kineticakdb,
stringtable_name,
KineticaTypektype,
WorkerList?workers = null )
inline

Create a RecordRetriever object with the given parameters.

Parameters
kdbThe Kinetica connection.
table_nameThe table name to retrieve from.
ktypeThe KineticaType for the table.
workersOptional worker list for multi-head retrieval.

Definition at line 79 of file RecordRetriever.cs.

Property Documentation

◆ HARingSize

int kinetica.RecordRetriever< T >.HARingSize
get

Gets the HA ring size.

Definition at line 66 of file RecordRetriever.cs.

◆ KineticaDB

Kinetica kinetica.RecordRetriever< T >.KineticaDB
get

Gets the Kinetica connection.

Definition at line 51 of file RecordRetriever.cs.

◆ NumClusterSwitches

int kinetica.RecordRetriever< T >.NumClusterSwitches
get

Gets the number of cluster switches due to HA failover.

Definition at line 61 of file RecordRetriever.cs.

◆ TableName

string kinetica.RecordRetriever< T >.TableName
get

Gets the table name.

Definition at line 56 of file RecordRetriever.cs.


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