Click or drag to resize

Oid Structure

The object identifier containing a 32 bit database part, a 16 bit page part and a 16 bit page part. These parts are combined into a 64bit unsigned number Id.

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public struct Oid : IComparable<Oid>, IEqualityComparer<Oid>

The Oid type exposes the following members.

Constructors
  NameDescription
Public methodOid(UInt64)
Creates an Oid
Public methodOid(UInt32, UInt32)
Creates an Oid given a Database number and an OidShort (page-slot)
Public methodOid(UInt32, OidShort)
Creates an Oid given a Database number and an OidShort (page-slot)
Top
Properties
  NameDescription
Public propertyDatabase
Gets the database number part of the Oid
Public propertyId
Gets the underlaying UInt64 that contains the encoded Oid.
Public propertyIdShort
Gets the page-slot parts of the underlaying UInt64 that contains the encoded Oid.
Public propertyPage
Gets the page number part of the Oid
Public propertySlot
Gets the slot number part of the Oid
Top
Methods
  NameDescription
Public methodStatic memberAsString
Builds a string with DatabaseNumber-PageNumber-SlotNumber
Public methodCompareTo
Compares two Oid objects by id
Public methodStatic memberDatabaseNumber
Extracts the Database number
Public methodStatic memberEncode(UInt32, UInt32)
Constructs a UInt64 from the components Database number and an encoded UInt32 contains page and slot number
Public methodStatic memberEncode(UInt32, UInt16, UInt16)
Constructs a UInt64 from the components Database number, Page number and page number
Public methodEquals
Compares by Id
Public methodGetHashCode
Computes a hash code based on Id.
(Overrides ValueTypeGetHashCode.)
Public methodGetHashCode(Oid)
Returns a hash code for the specified object.
Public methodStatic memberIdFromString
Public methodStatic memberPageNumber
Extracts the Page number
Public methodStatic memberSamePageAs
Find out if Page number is the same in two different UInt64 numbers (encoded Oid)
Public methodStatic memberSlotNumber(UInt64)
Extracts the page number
Public methodStatic memberSlotNumber(UInt64, UInt16)
Sets the page number
Public methodToString
Builds a string with DatabaseNumber-PageNumber-SlotNumber
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberGreaterThan
Compares the id of two Oid's
Public operatorStatic memberGreaterThanOrEqual
Compares the id of two Oid's
Public operatorStatic memberLessThan
Compares the id of two Oid's
Public operatorStatic memberLessThanOrEqual
Compares the id of two Oid's
Top
See Also