essentials

package
v0.0.0-...-f08690a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const PAGE_SIZE = 4096 // 4K pages

Variables

This section is empty.

Functions

This section is empty.

Types

type PageId

type PageId struct {
	// contains filtered or unexported fields
}

func NewPageId

func NewPageId(fileId int, page_num uint64) *PageId

func (*PageId) GetFileId

func (pid *PageId) GetFileId() uint32

func (*PageId) GetPageNumber

func (pid *PageId) GetPageNumber() uint32

func (*PageId) IsPageIdValid

func (pid *PageId) IsPageIdValid() bool

type RecordId

type RecordId struct {
	PageId
}

RecordId structure |FID(32b)|PN(16b)|SLOT(16b)| FID = File Identifier PN = Page Number SLOT = Slot Identifier

func NewRecordId

func NewRecordId(pid *PageId, slot_id uint64) *RecordId

func (*RecordId) GetSlotId

func (rid *RecordId) GetSlotId() uint32

func (*RecordId) IsRecordIdValid

func (rid *RecordId) IsRecordIdValid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL