Skip to main content

Interface for records that can be inserted into Kinetica. More…

Inheritance diagram for kinetica.Records.IKineticaRecord:

Public Member Functions

string GetAvroSchema ()
 Returns the Avro schema as a JSON string for this record type.
 
string GetAvroSchema ()
 Returns the Avro schema as a JSON string for this record type.
 

Detailed Description

Interface for records that can be inserted into Kinetica.

Equivalent to Rust’s KineticaRecord trait.

Types implementing this interface can be used with the BulkInserter for high-performance data ingestion.

public class SensorReading : IKineticaRecord
public int Id get; set;
public string SensorName get; set;
public double Value get; set;
private static readonly string _schema = new AvroSchemaBuilder(“SensorReading”)
.IntField(“id”)
.StringField(“sensor_name”)
.DoubleField(“value”)
.Build();
public string GetAvroSchema() => _schema;
public static IReadOnlyDictionary<string, IList<string>> GetTypeProperties()
=> new TypePropertiesBuilder()
.PrimaryKey(“id”)
.Build();
Interface for records that can be inserted into Kinetica.
string GetAvroSchema()
Returns the Avro schema as a JSON string for this record type.

Definition at line 34 of file IKineticaRecord.cs.

Member Function Documentation

◆ GetAvroSchema() [1/2]

string kinetica.Records.IKineticaRecord.GetAvroSchema ()

Returns the Avro schema as a JSON string for this record type.

The schema should be cached (e.g., in a static field) to avoid repeated string allocations.

Returns
A JSON string containing the Avro record schema.

Implemented in kinetica.Records.GenericRecord, and kinetica.Records.GenericRecord.

◆ GetAvroSchema() [2/2]

string kinetica.Records.IKineticaRecord.GetAvroSchema ()

Returns the Avro schema as a JSON string for this record type.

The schema should be cached (e.g., in a static field) to avoid repeated string allocations.

Returns
A JSON string containing the Avro record schema.

Implemented in kinetica.Records.GenericRecord, and kinetica.Records.GenericRecord.


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