Documentation ¶
Index ¶
- type EvictionFunc
- type MaxHeap
- type Memory
- func (m *Memory) ForceWrite(set common.UniqueKeyable, content *page.Page) (added bool, err error)
- func (m *Memory) HasPage(set common.UniqueKeyable) bool
- func (m *Memory) Init(set page.CandleSet)
- func (m *Memory) RangeForEviction(fn EvictionFunc)
- func (m *Memory) Read(txId uint64, set common.UniqueKeyable) (reader MemoryReader, ok bool)
- func (m *Memory) StartWrite(txId uint64, set common.UniqueKeyable) MemoryWriter
- func (m *Memory) StatsForEviction(maxPages int) (pageCount int, thresholdHitCount int)
- type MemoryReader
- type MemoryWriter
- type UnlockFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictionFunc ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) ForceWrite ¶
func (*Memory) RangeForEviction ¶
func (m *Memory) RangeForEviction(fn EvictionFunc)
func (*Memory) Read ¶
func (m *Memory) Read(txId uint64, set common.UniqueKeyable) (reader MemoryReader, ok bool)
func (*Memory) StartWrite ¶
func (m *Memory) StartWrite(txId uint64, set common.UniqueKeyable) MemoryWriter
type MemoryReader ¶
type MemoryReader struct {
// contains filtered or unexported fields
}
func (*MemoryReader) Done ¶
func (r *MemoryReader) Done()
func (*MemoryReader) Get ¶
func (r *MemoryReader) Get() *page.Page
type MemoryWriter ¶
type MemoryWriter struct {
// contains filtered or unexported fields
}
func (*MemoryWriter) Commit ¶
func (m *MemoryWriter) Commit()
func (*MemoryWriter) Rollback ¶
func (m *MemoryWriter) Rollback()
func (*MemoryWriter) WritableContent ¶
func (m *MemoryWriter) WritableContent() *page.Page
type UnlockFunc ¶
type UnlockFunc func()
Click to show internal directories.
Click to hide internal directories.