Kinetica   C#   API  Version 7.2.3.1
AvroType.cs
Go to the documentation of this file.
1 namespace kinetica.SchemaBuilder;
2 
7  public enum AvroType
8  {
10  Int,
12  Long,
14  Float,
16  Double,
18  String,
20  Boolean,
22  Bytes
23  }
24 
28  public static class AvroTypeExtensions
29  {
33  public static string GetTypeName(this AvroType type)
34  {
35  return type switch
36  {
37  AvroType.Int => "int",
38  AvroType.Long => "long",
39  AvroType.Float => "float",
40  AvroType.Double => "double",
41  AvroType.String => "string",
42  AvroType.Boolean => "boolean",
43  AvroType.Bytes => "bytes",
44  _ => "string"
45  };
46  }
47  }
64-bit signed integer
AvroType
Avro primitive types for schema building.
Definition: AvroType.cs:7
static string GetTypeName(this AvroType type)
Gets the Avro type name string.
Definition: AvroType.cs:33
32-bit IEEE 754 float
Extension methods for AvroType.
Definition: AvroType.cs:28
64-bit IEEE 754 double
32-bit signed integer (also used for boolean, int8, int16)
Boolean stored as integer (0 or 1)