Class KsqlDbArray
Represents an array object which is returned from the ksqlDB. The array can be accessed by position for the various types which may exist. If the object is not natively that type, it will attempt to be converted.
Inheritance
Inherited Members
Namespace: Confluent.KsqlDb
Assembly: cs.temp.dll.dll
Syntax
public class KsqlDbArray
Properties
Count
Returns the number of entries
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of entries |
IsEmpty
If the array is empty
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if empty, false otherwise |
Methods
GetBoolean(Int32)
Gets the value as a boolean, possibly converting if necessary.
Declaration
public bool GetBoolean(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.Boolean | The boolean value at the given position |
GetDecimal(Int32)
Gets the value as a decimal, possibly converting if necessary. This is appropriate for ksqlDB Decimal types, though it should be noted that precision and scale may be lost as this type is parsed as a C# native decimal which does not have arbitrary precision and scale.
Declaration
public decimal GetDecimal(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.Decimal | The decimal value at the given position |
GetDouble(Int32)
Gets the value as a double, possibly converting if necessary.
Declaration
public double GetDouble(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.Double | The double value at the given position |
GetInteger(Int32)
Gets the value as an integer, possibly converting if necessary.
Declaration
public int GetInteger(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.Int32 | The integer value at the given position |
GetKsqlDbArray(Int32)
Gets the value as an array. This is appropriate for ksqlDB List types.
Declaration
public KsqlDbArray GetKsqlDbArray(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
KsqlDbArray | The array value at the given position |
GetKsqlDbObject(Int32)
Gets the value as an object. This is appropriate for ksqlDB Map and Struct types.
Declaration
public KsqlDbObject GetKsqlDbObject(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
KsqlDbObject | The object value at the given position |
GetLong(Int32)
Gets the value as a long, possibly converting if necessary.
Declaration
public long GetLong(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.Int64 | The long value at the given position |
GetString(Int32)
Gets the value as a string, possibly converting if necessary.
Declaration
public string GetString(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.String | The string value at the given position |
GetValue(Int32)
Gets the value in its native type, without any attempt at conversion.
Declaration
public object GetValue(int pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | The position within the array |
Returns
Type | Description |
---|---|
System.Object | The value at the given position |
ToString()
Returns a string representation of the array.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The string representation |