Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAvailablePage = errors.New("failed to find an available page") ErrPinCountZero = errors.New("page pin count is not zero") )
Functions ¶
This section is empty.
Types ¶
type BufferPoolManager ¶
type BufferPoolManager interface {
FetchPage(ctx Ctx, pageId uint64, opts ...*FetchPageOption) (page.Page, error)
UnpinPage(ctx Ctx, pageId uint64, dirty bool) (bool, error)
NewPage(ctx Ctx, pageId *uint64, opts ...*NewPageOption) (page.Page, error)
DeletePage(ctx Ctx, pageId uint64) (bool, error)
FlushAll(ctx Ctx) error
}
func NewBufferPool ¶
func NewBufferPool(o Options) BufferPoolManager
NewBufferPool TODO: pre-allocation
type FetchPageOption ¶
type FetchPageOption struct {
}
type FindOneAvailablePageOption ¶
type FindOneAvailablePageOption struct {
}
type NewPageOption ¶
type NewPageOption struct {
}
func MergeNewPageOptions ¶
func MergeNewPageOptions(opts ...*NewPageOption) *NewPageOption
Click to show internal directories.
Click to hide internal directories.