page

package
v0.0.0-...-6120cfb Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidPageId = uint64(1 << 63)

InvalidPageId first is used to identify whether the current page is valid

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker interface {
	Lock()
	Unlock()
	RLock()
	RUnlock()
}

type Page

type Page interface {
	IsDirty() bool
	Latch() Locker
	PinCount() uint64
	DecrPinCount() uint64
	IncrPinCount() uint64
	SetPinCount(count uint64)
	SetPageId(pid uint64)
	PageId() uint64
	Data() *[disk.PAGE_SIZE]byte
	SetIsDirty(bool)
	ResetData()
}

func NewPage

func NewPage(pid uint64) Page

Jump to

Keyboard shortcuts

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