Interface IIgniteTuple
Ignite Tuple.
Default implementation is IgniteTuple.public interface IIgniteTuple
Properties
FieldCount
Gets the number of columns.
int FieldCount { get; }
Property Value
this[int]
Gets the value of the specified column as an object.
object? this[int ordinal] { get; set; }
Parameters
ordinal
intThe zero-based column ordinal.
Property Value
this[string]
Gets the value of the specified column as an object.
object? this[string name] { get; set; }
Parameters
name
stringThe column name.
Property Value
Methods
Equals(IIgniteTuple?, IIgniteTuple?)
Determines whether the specified object instances are considered equal. Ignores column order.
public static bool Equals(IIgniteTuple? tuple1, IIgniteTuple? tuple2)
Parameters
tuple1
IIgniteTupleThe first tuple to compare.
tuple2
IIgniteTupleThe second tuple to compare.
Returns
- bool
true if the tuples are considered equal; otherwise, false. If both
tuple1
andtuple1
are null, the method returns true.
GetHashCode(IIgniteTuple)
Gets a hash code for the current tuple according to column names and values, ignoring column order.
public static int GetHashCode(IIgniteTuple tuple)
Parameters
tuple
IIgniteTupleTuple.
Returns
- int
A hash code for the specified tuple.
GetName(int)
Gets the name of the column, given the zero-based column ordinal.
string GetName(int ordinal)
Parameters
ordinal
intZero-based column ordinal.
Returns
- string
Column name.
GetOrdinal(string)
Gets the column ordinal given the name of the column, or -1 when the column with the given name does not exist.
int GetOrdinal(string name)
Parameters
name
stringColumn name.
Returns
- int
Column ordinal, or -1 when the column with the given name does not exist.
ToString(IIgniteTuple)
Converts tuple to string.
public static string ToString(IIgniteTuple tuple)
Parameters
tuple
IIgniteTupleTuple.
Returns
- string
String representation.