Kinetica   C#   API  Version 7.2.3.1
Example.SensorReading Class Reference

Sensor reading from IoT devices - test record type. More...

+ Inheritance diagram for Example.SensorReading:
+ Collaboration diagram for Example.SensorReading:

Public Member Functions

ShardKeyValues GetShardKeyValues ()
 Returns shard key column names and their typed values. More...
 

Properties

int sensor_id [get, set]
 
string location = "" [get, set]
 
double temperature [get, set]
 
double humidity [get, set]
 
long timestamp [get, set]
 

Detailed Description

Sensor reading from IoT devices - test record type.

Definition at line 77 of file BulkInserterFullIntegration.cs.

Member Function Documentation

◆ GetShardKeyValues()

ShardKeyValues Example.SensorReading.GetShardKeyValues ( )
inline

Returns shard key column names and their typed values.

Only columns that are part of the shard key need to be included. The values are used for computing the routing hash to determine which worker node should receive the record.

For best performance, implement this method to avoid allocations when possible (e.g., use ShardKeyValues.Single() for single-column keys).

Returns
A collection of (column name, value) pairs for the shard key.

Implements IShardKeyExtractor.

Definition at line 85 of file BulkInserterFullIntegration.cs.

Property Documentation

◆ humidity

double Example.SensorReading.humidity
getset

Definition at line 82 of file BulkInserterFullIntegration.cs.

◆ location

string Example.SensorReading.location = ""
getset

Definition at line 80 of file BulkInserterFullIntegration.cs.

◆ sensor_id

int Example.SensorReading.sensor_id
getset

Definition at line 79 of file BulkInserterFullIntegration.cs.

◆ temperature

double Example.SensorReading.temperature
getset

Definition at line 81 of file BulkInserterFullIntegration.cs.

◆ timestamp

long Example.SensorReading.timestamp
getset

Definition at line 83 of file BulkInserterFullIntegration.cs.


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