Struct VelocityRowId
- Namespace
- Datafication.Storage.Velocity
- Assembly
- Datafication.Storage.Velocity.dll
Represents a globally unique row identifier within a VelocityDataBlock. Provides O(1) row addressing for updates and deletes.
public readonly struct VelocityRowId
Constructors
VelocityRowId(long)
Creates a VelocityRowId from a 64-bit value
public VelocityRowId(long value)
Parameters
valuelong
Fields
Null
Null/invalid row ID constant
public static readonly VelocityRowId Null
Field Value
Properties
IsNull
Checks if this is a null/invalid row ID
public bool IsNull { get; }
Property Value
- bool
IsValid
Checks if this is a valid row ID
public bool IsValid { get; }
Property Value
- bool
Value
Gets the raw 64-bit row ID value
public long Value { get; }
Property Value
- long
Methods
CompareTo(VelocityRowId)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(VelocityRowId other)
Parameters
otherVelocityRowIdAn object to compare with this instance.
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.
Equals(VelocityRowId)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VelocityRowId other)
Parameters
otherVelocityRowIdAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
FromInt64(long)
Creates a row ID from a 64-bit value
public static VelocityRowId FromInt64(long value)
Parameters
valuelong
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToInt64()
Converts to a 64-bit integer
public long ToInt64()
Returns
- long
ToString()
Gets a string representation for debugging
public override string ToString()
Returns
- string
Operators
operator ==(VelocityRowId, VelocityRowId)
public static bool operator ==(VelocityRowId left, VelocityRowId right)
Parameters
leftVelocityRowIdrightVelocityRowId
Returns
- bool
operator >(VelocityRowId, VelocityRowId)
public static bool operator >(VelocityRowId left, VelocityRowId right)
Parameters
leftVelocityRowIdrightVelocityRowId
Returns
- bool
operator >=(VelocityRowId, VelocityRowId)
public static bool operator >=(VelocityRowId left, VelocityRowId right)
Parameters
leftVelocityRowIdrightVelocityRowId
Returns
- bool
implicit operator long(VelocityRowId)
public static implicit operator long(VelocityRowId rowId)
Parameters
rowIdVelocityRowId
Returns
- long
implicit operator VelocityRowId(long)
public static implicit operator VelocityRowId(long value)
Parameters
valuelong
Returns
operator !=(VelocityRowId, VelocityRowId)
public static bool operator !=(VelocityRowId left, VelocityRowId right)
Parameters
leftVelocityRowIdrightVelocityRowId
Returns
- bool
operator <(VelocityRowId, VelocityRowId)
public static bool operator <(VelocityRowId left, VelocityRowId right)
Parameters
leftVelocityRowIdrightVelocityRowId
Returns
- bool
operator <=(VelocityRowId, VelocityRowId)
public static bool operator <=(VelocityRowId left, VelocityRowId right)
Parameters
leftVelocityRowIdrightVelocityRowId
Returns
- bool