Kinetica   C#   API  Version 7.2.3.1
IKineticaRecordType< T > Interface Template Referenceabstract

Static interface for type-level properties. More...

Static Public Member Functions

static abstract IReadOnlyDictionary< string, IList< string > > GetTypeProperties ()
 Returns type properties including field types and attributes. More...
 

Detailed Description

Static interface for type-level properties.

Implement this alongside IKineticaRecord to provide type metadata.

Note: C# doesn't support static interface members in all versions. This interface provides a pattern for implementing static GetTypeProperties().

Template Parameters
TThe implementing type.
Type Constraints
T :IKineticaRecord 

Definition at line 56 of file IKineticaRecord.cs.

Member Function Documentation

◆ GetTypeProperties()

static abstract IReadOnlyDictionary<string, IList<string> > IKineticaRecordType< T >.GetTypeProperties ( )
staticpure virtual

Returns type properties including field types and attributes.

Properties include:

  • "primary_key": Column is part of the primary key
  • "shard_key": Column is part of the shard key
  • "nullable": Column can contain null values
  • "timestamp": Column contains timestamp data
  • "ipv4": Column contains IPv4 addresses
  • etc.
Returns
A dictionary mapping column names to their list of properties.

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