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
ordinalintThe 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
namestringThe 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
tuple1IIgniteTupleThe first tuple to compare.
tuple2IIgniteTupleThe second tuple to compare.
Returns
- bool
true if the tuples are considered equal; otherwise, false. If both
tuple1andtuple1are 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
tupleIIgniteTupleTuple.
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
ordinalintZero-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
namestringColumn 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
tupleIIgniteTupleTuple.
Returns
- string
String representation.