Documentation ¶
Index ¶
- func NewWriter(w *os.File) *bufWriter
- func NewWriterSize(w *os.File, size int) *bufWriter
- type HnswCommitType
- type Logger
- func (l *Logger) AddLinkAtLevel(id uint64, level int, target uint64) error
- func (l *Logger) AddLinksAtLevel(id uint64, level int, targets []uint64) error
- func (l *Logger) AddNode(id uint64, level int) error
- func (l *Logger) AddPQ(data ssdhelpers.PQData) error
- func (l *Logger) AddTombstone(id uint64) error
- func (l *Logger) ClearLinks(id uint64) error
- func (l *Logger) ClearLinksAtLevel(id uint64, level uint16) error
- func (l *Logger) Close() error
- func (l *Logger) DeleteNode(id uint64) error
- func (l *Logger) FileName() (string, error)
- func (l *Logger) FileSize() (int64, error)
- func (l *Logger) Flush() error
- func (l *Logger) RemoveTombstone(id uint64) error
- func (l *Logger) ReplaceLinksAtLevel(id uint64, level int, targets []uint64) error
- func (l *Logger) Reset() error
- func (l *Logger) SetEntryPointWithMaxLayer(id uint64, level int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWriterSize ¶
NewWriterSize returns a new Writer whose buffer has at least the specified size. If the argument *os.File is already a Writer with large enough size, it returns the underlying Writer.
Types ¶
type HnswCommitType ¶
type HnswCommitType uint8 // 256 options, plenty of room for future extensions
TODO: these are duplicates with the hnsw package, unify them
const ( AddNode HnswCommitType = iota SetEntryPointMaxLevel AddLinkAtLevel ReplaceLinksAtLevel AddTombstone RemoveTombstone ClearLinks DeleteNode ResetIndex ClearLinksAtLevel // added in v1.8.0-rc.1, see https://github.com/weaviate/weaviate/issues/1701 AddLinksAtLevel // added in v1.8.0-rc.1, see https://github.com/weaviate/weaviate/issues/1705 AddPQ )
TODO: these are duplicates with the hnsw package, unify them
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLoggerWithFile ¶
func (*Logger) AddLinkAtLevel ¶
func (*Logger) AddLinksAtLevel ¶
func (*Logger) AddTombstone ¶
func (*Logger) ClearLinks ¶
func (*Logger) ClearLinksAtLevel ¶
func (*Logger) DeleteNode ¶
func (*Logger) RemoveTombstone ¶
func (*Logger) ReplaceLinksAtLevel ¶
chunks links in increments of 8, so that we never have to allocate a dynamic []byte size which would be guaranteed to escape to the heap
Click to show internal directories.
Click to hide internal directories.