Interface for records that can be inserted into Kinetica. More…
Public Member Functions | |
| 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 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 static IReadOnlyDictionary<string, IList<string>> GetTypeProperties()
=> new TypePropertiesBuilder()
.PrimaryKey(“id”)
.Build();
Interface for records that can be inserted into Kinetica.
Definition IKineticaRecord.cs:35
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()
| 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.
The documentation for this interface was generated from the following file:
- Kinetica/Records/IKineticaRecord.cs