Documentation
¶
Index ¶
- type WAL
- func (w *WAL) Close() error
- func (w *WAL) Recover() ([]*types.Vector, []string, error)
- func (w *WAL) Truncate() error
- func (w *WAL) WriteBatch(vectors []*types.Vector, ids []string) error
- func (w *WAL) WriteCheckpoint() error
- func (w *WAL) WriteDelete(id string) error
- func (w *WAL) WriteInsert(vec *types.Vector) error
- type WALRecord
- type WALRecordType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WAL ¶
type WAL struct {
// contains filtered or unexported fields
}
WAL Write-Ahead Log实现
func (*WAL) WriteBatch ¶
WriteBatch 写入批量操作记录
type WALRecord ¶
type WALRecord struct {
Type WALRecordType
Timestamp int64
Data []byte
}
WALRecord WAL记录
type WALRecordType ¶
type WALRecordType uint8
WALRecordType WAL记录类型
const ( WALInsert WALRecordType = iota + 1 WALDelete WALBatch WALCheckpoint )
Click to show internal directories.
Click to hide internal directories.