Documentation ¶
Index ¶
- func Backup(segments []Segment, dir string) error
- func BackupDir(dir, target string) error
- func CheckDir(dir string, params index.Params) error
- func Consume[S ~[]O, O Offsetter](segments S, offset int64) (O, int)
- func Get[S ~[]O, O Offsetter](segments S, offset int64) (O, int, error)
- func RecoverDir(dir string, params index.Params) error
- type Offsetter
- type RewriteSegment
- type Segment
- func (s Segment) Backup(targetDir string) error
- func (s Segment) Check(params index.Params) error
- func (s Segment) ForRewrite() (Segment, error)
- func (s Segment) GetOffset() int64
- func (s Segment) NeedsReindex() (bool, error)
- func (olds Segment) Override(news Segment) error
- func (s Segment) Recover(params index.Params) error
- func (s Segment) Reindex(params index.Params) ([]index.Item, error)
- func (s Segment) ReindexAndReadIndex(params index.Params) ([]index.Item, error)
- func (s Segment) ReindexReader(params index.Params, log *message.Reader) ([]index.Item, error)
- func (s Segment) Remove() error
- func (olds Segment) Rename(news Segment) error
- func (src Segment) Rewrite(dropOffsets map[int64]struct{}, params index.Params) (*RewriteSegment, error)
- func (s Segment) Stat(params index.Params) (Stats, error)
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RewriteSegment ¶
type RewriteSegment struct { Segment Segment Stats Stats SurviveOffsets map[int64]struct{} DeletedOffsets map[int64]struct{} DeletedSize int64 }
func (*RewriteSegment) GetNewSegment ¶
func (r *RewriteSegment) GetNewSegment() Segment
type Segment ¶
func (Segment) ForRewrite ¶
func (Segment) NeedsReindex ¶
func (Segment) ReindexAndReadIndex ¶
func (Segment) ReindexReader ¶
Click to show internal directories.
Click to hide internal directories.