Documentation
¶
Index ¶
- type MemoryEvictionReason
- type MemoryEvictionResult
- type Storage
- type StorageAccessor
- func (s *StorageAccessor) AcquirePage(set page.CandleSet, exclusive bool) (func(), error)
- func (s *StorageAccessor) Commit() error
- func (s *StorageAccessor) Execute(cmd command.CommandContent) (interface{}, error)
- func (s *StorageAccessor) GetPage(set page.CandleSet, exclusive bool) (*page.Page, error)
- func (s *StorageAccessor) Rollback()
- func (s *StorageAccessor) RollbackIfActive()
- func (s *StorageAccessor) Start() (txId uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryEvictionReason ¶
type MemoryEvictionReason int
const ( UserTriggerEvictionReason MemoryEvictionReason = 1 PeriodicalEvictionReason MemoryEvictionReason = 2 AfterWalFlushEvictionReason MemoryEvictionReason = 3 )
func (MemoryEvictionReason) String ¶
func (m MemoryEvictionReason) String() string
type MemoryEvictionResult ¶
type MemoryEvictionResult struct { PagesCountBeforeEvict int EvictedCount int AccessedPageCount int Error error }
func (MemoryEvictionResult) String ¶
func (m MemoryEvictionResult) String() string
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) Access ¶
func (s *Storage) Access() (StorageAccessor, error)
func (*Storage) EvictMemory ¶
func (s *Storage) EvictMemory(reason MemoryEvictionReason) MemoryEvictionResult
type StorageAccessor ¶
type StorageAccessor struct {
// contains filtered or unexported fields
}
func (*StorageAccessor) AcquirePage ¶
func (s *StorageAccessor) AcquirePage(set page.CandleSet, exclusive bool) (func(), error)
func (*StorageAccessor) Commit ¶
func (s *StorageAccessor) Commit() error
func (*StorageAccessor) Execute ¶
func (s *StorageAccessor) Execute(cmd command.CommandContent) (interface{}, error)
func (*StorageAccessor) Rollback ¶
func (s *StorageAccessor) Rollback()
func (*StorageAccessor) RollbackIfActive ¶
func (s *StorageAccessor) RollbackIfActive()
func (*StorageAccessor) Start ¶
func (s *StorageAccessor) Start() (txId uint64, err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.