Dela via


DataViewRowId Struct

Definition

A structure serving as the identifier of a row of IDataView. For datasets with millions of records, those IDs need to be unique, therefore the need for such a large structure to hold the values. Those Ids are derived from other Ids of the previous components of the pipelines, and dividing the structure in two: high order and low order of bits, and reduces the changes of those collisions even further.

public readonly struct DataViewRowId : IComparable<Microsoft.ML.Data.DataViewRowId>, IEquatable<Microsoft.ML.Data.DataViewRowId>
type DataViewRowId = struct
Public Structure DataViewRowId
Implements IComparable(Of DataViewRowId), IEquatable(Of DataViewRowId)
Inheritance
DataViewRowId
Implements

Constructors

DataViewRowId(UInt64, UInt64)

Initializes a new instance of DataViewRowId

Fields

High

The high order bits. Corresponds to H2 in the Murmur algorithms.

Low

The low order bits. Corresponds to H1 in the Murmur algorithms.

Methods

Combine(DataViewRowId)

An operation that treats the value as an unmixed Murmur3 128-bit hash state, and returns the hash state that would result if we took other, scrambled it using Fork(), then hashed the result of that.

CompareTo(DataViewRowId)
Equals(DataViewRowId)
Equals(Object)
Fork()

An operation that treats the value as an unmixed Murmur3 128-bit hash state, and returns the hash state that would result if we hashed an addition 16 bytes that were all zeros, except for the last bit which is one.

GetHashCode()
Next()

An operation that treats the value as an unmixed Murmur3 128-bit hash state, and returns the hash state that would result if we hashed an addition 16 bytes that were all zeros.

ToString()

Applies to

See also