cache

package
v0.0.0-...-459568a Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnionPageSize uint64 = 16 * 1024

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}
var CP *Pool

func NewCacheBuffer

func NewCacheBuffer(maxCacheNum uint64) *Pool

func (*Pool) GetPage

func (cb *Pool) GetPage(spaceId, pageNo uint64, lockType pcache.BpLockType, imtr *mtr2.Mtr) (bp *pcache.BlockPage)

func (*Pool) OffsetInBlockAlign

func (cb *Pool) OffsetInBlockAlign(b *byte) uint64

func (*Pool) PosInBlockAlign

func (cb *Pool) PosInBlockAlign(b *byte) *pcache.BlockPage

func (*Pool) ReadPageFromFile

func (cb *Pool) ReadPageFromFile(spaceID, pageNo uint64) *pcache.BlockPage

add pageBuffer to bufferPool

func (*Pool) WritePageFromFile

func (cb *Pool) WritePageFromFile(spaceID, pageNo uint64) *pcache.BlockPage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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