Documentation ¶
Index ¶
- Constants
- func IsHNSWIndex(index any) bool
- func New(cfg Config, uc ent.UserConfig, ...) (*hnsw, error)
- func NewCommitLogger(rootPath, name string, logger logrus.FieldLogger, ...) (*hnswCommitLogger, error)
- func NewFromJSONDump(dumpBytes []byte, vecForID common.VectorForID[float32]) (*hnsw, error)
- func NewFromJSONDumpMap(dumpBytes []byte, vecForID common.VectorForID[float32]) (*hnsw, error)
- func NewTempVectorForIDThunk(targetVector string, ...) common.TempVectorForID
- func NewVectorForIDThunk(targetVector string, ...) common.VectorForID[float32]
- func NewWriter(w *os.File) *bufWriter
- func NewWriterSize(w *os.File, size int) *bufWriter
- func ValidateUserConfigUpdate(initial, updated config.VectorIndexConfig) error
- type BufferedLinksLogger
- type CommitLogCombiner
- type CommitLogger
- type CommitlogOption
- type Condensor
- type Config
- type CorruptCommitLogFixer
- type DeserializationResult
- type Deserializer
- func (d *Deserializer) Do(fd *bufio.Reader, initialState *DeserializationResult, ...) (*DeserializationResult, int, error)
- func (d *Deserializer) ReadAddLinks(r io.Reader, res *DeserializationResult) (int, error)
- func (d *Deserializer) ReadAddTombstone(r io.Reader, tombstones map[uint64]struct{}) error
- func (d *Deserializer) ReadClearLinks(r io.Reader, res *DeserializationResult, keepReplaceInfo bool) error
- func (d *Deserializer) ReadClearLinksAtLevel(r io.Reader, res *DeserializationResult, keepReplaceInfo bool) error
- func (d *Deserializer) ReadCommitType(r io.Reader) (HnswCommitType, error)
- func (d *Deserializer) ReadDeleteNode(r io.Reader, res *DeserializationResult, nodesDeleted map[uint64]struct{}) error
- func (d *Deserializer) ReadEP(r io.Reader) (uint64, uint16, error)
- func (d *Deserializer) ReadKMeansEncoder(r io.Reader, data *compressionhelpers.PQData, i uint16) (compressionhelpers.PQEncoder, error)
- func (d *Deserializer) ReadLink(r io.Reader, res *DeserializationResult) error
- func (d *Deserializer) ReadLinks(r io.Reader, res *DeserializationResult, keepReplaceInfo bool) (int, error)
- func (d *Deserializer) ReadNode(r io.Reader, res *DeserializationResult) error
- func (d *Deserializer) ReadPQ(r io.Reader, res *DeserializationResult) (int, error)
- func (d *Deserializer) ReadRemoveTombstone(r io.Reader, tombstones map[uint64]struct{}, ...) error
- func (d *Deserializer) ReadSQ(r io.Reader, res *DeserializationResult) error
- func (d *Deserializer) ReadTileEncoder(r io.Reader, res *compressionhelpers.PQData, i uint16) (compressionhelpers.PQEncoder, error)
- type HnswCommitType
- type HnswStats
- type Index
- type JSONDump
- type JSONDumpMap
- type JSONDumpNode
- type JSONDumpNodeMap
- type MakeCommitLogger
- type MemoryCondensor
- func (c *MemoryCondensor) AddLinkAtLevel(nodeid uint64, level uint16, target uint64) error
- func (c *MemoryCondensor) AddLinksAtLevel(nodeid uint64, level uint16, targets []uint64) error
- func (c *MemoryCondensor) AddNode(node *vertex) error
- func (c *MemoryCondensor) AddPQCompression(data compressionhelpers.PQData) error
- func (c *MemoryCondensor) AddSQCompression(data compressionhelpers.SQData) error
- func (c *MemoryCondensor) AddTombstone(nodeid uint64) error
- func (c *MemoryCondensor) DeleteNode(id uint64) error
- func (c *MemoryCondensor) Do(fileName string) error
- func (c *MemoryCondensor) RemoveTombstone(nodeid uint64) error
- func (c *MemoryCondensor) SetEntryPointWithMaxLayer(id uint64, level int) error
- func (c *MemoryCondensor) SetLinksAtLevel(nodeid uint64, level int, targets []uint64) error
- type Metrics
- func (m *Metrics) AddTombstone()
- func (m *Metrics) AddUnexpectedTombstone(operation string)
- func (m *Metrics) CleanedUp()
- func (m *Metrics) DeleteVector()
- func (m *Metrics) EndCleanup(threads int)
- func (m *Metrics) EndTombstoneCycle()
- func (m *Metrics) GrowDuration(start time.Time)
- func (m *Metrics) InsertVector()
- func (m *Metrics) RemoveTombstone()
- func (m *Metrics) SetSize(size int)
- func (m *Metrics) SetTombstoneDeleteListSize(size int)
- func (m *Metrics) StartCleanup(threads int)
- func (m *Metrics) StartTombstoneCycle()
- func (m *Metrics) StartupProgress(ratio float64)
- func (m *Metrics) TombstoneCycleProgress(progress float64)
- func (m *Metrics) TombstoneFindGlobalEntrypoint()
- func (m *Metrics) TombstoneFindLocalEntrypoint()
- func (m *Metrics) TombstoneReassignNeighbor()
- func (m *Metrics) TrackDelete(start time.Time, step string)
- func (m *Metrics) TrackInsertObserver(step string) Observer
- func (m *Metrics) TrackStartupIndividual(start time.Time)
- func (m *Metrics) TrackStartupReadCommitlogDiskIO(read int64, nanoseconds int64)
- func (m *Metrics) TrackStartupTotal(start time.Time)
- type MmapCondensor
- type MmapCondensorAnalyzer
- func (a *MmapCondensorAnalyzer) Do(file *os.File) (mmapIndex, error)
- func (a *MmapCondensorAnalyzer) ReadAddTombstone(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadClearLinks(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadCommitType(r io.Reader) (HnswCommitType, error)
- func (a *MmapCondensorAnalyzer) ReadDeleteNode(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadEP(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadLink(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadLinks(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadNode(r io.Reader) error
- func (a *MmapCondensorAnalyzer) ReadRemoveTombstone(r io.Reader) error
- type MmapCondensorReader
- type NoopCommitLogger
- func (n *NoopCommitLogger) AddLinkAtLevel(nodeid uint64, level int, target uint64) error
- func (n *NoopCommitLogger) AddNode(node *vertex) error
- func (n *NoopCommitLogger) AddPQCompression(data compressionhelpers.PQData) error
- func (n *NoopCommitLogger) AddSQCompression(data compressionhelpers.SQData) error
- func (n *NoopCommitLogger) AddTombstone(nodeid uint64) error
- func (n *NoopCommitLogger) ClearLinks(nodeid uint64) error
- func (n *NoopCommitLogger) ClearLinksAtLevel(nodeid uint64, level uint16) error
- func (n *NoopCommitLogger) Close() error
- func (n *NoopCommitLogger) DeleteNode(nodeid uint64) error
- func (n *NoopCommitLogger) Drop(ctx context.Context) error
- func (n *NoopCommitLogger) Flush() error
- func (n *NoopCommitLogger) ID() string
- func (n *NoopCommitLogger) NewBufferedLinksLogger() BufferedLinksLogger
- func (n *NoopCommitLogger) RemoveTombstone(nodeid uint64) error
- func (n *NoopCommitLogger) ReplaceLinksAtLevel(nodeid uint64, level int, targets []uint64) error
- func (n *NoopCommitLogger) Reset() error
- func (n *NoopCommitLogger) RootPath() string
- func (n *NoopCommitLogger) SetEntryPointWithMaxLayer(id uint64, level int) error
- func (n *NoopCommitLogger) Shutdown(context.Context) error
- func (n *NoopCommitLogger) StartSwitchLogs() chan struct{}
- func (n *NoopCommitLogger) SwitchCommitLogs(force bool) error
- type Observer
Constants ¶
const ( // DefaultSearchByDistInitialLimit : // the initial limit of 100 here is an // arbitrary decision, and can be tuned // as needed DefaultSearchByDistInitialLimit = 100 // DefaultSearchByDistLimitMultiplier : // the decision to increase the limit in // multiples of 10 here is an arbitrary // decision, and can be tuned as needed DefaultSearchByDistLimitMultiplier = 10 )
Variables ¶
This section is empty.
Functions ¶
func IsHNSWIndex ¶ added in v1.24.22
func New ¶
func New(cfg Config, uc ent.UserConfig, tombstoneCallbacks, shardCompactionCallbacks, shardFlushCallbacks cyclemanager.CycleCallbackGroup, store *lsmkv.Store, ) (*hnsw, error)
New creates a new HNSW index, the commit logger is provided through a thunk (a function which can be deferred). This is because creating a commit logger opens files for writing. However, checking whether a file is present, is a criterium for the index to see if it has to recover from disk or if its a truly new index. So instead the index is initialized, with un-biased disk checks first and only then is the commit logger created
func NewCommitLogger ¶
func NewCommitLogger(rootPath, name string, logger logrus.FieldLogger, maintenanceCallbacks cyclemanager.CycleCallbackGroup, opts ...CommitlogOption, ) (*hnswCommitLogger, error)
func NewFromJSONDump ¶
func NewFromJSONDump(dumpBytes []byte, vecForID common.VectorForID[float32]) (*hnsw, error)
func NewFromJSONDumpMap ¶
func NewFromJSONDumpMap(dumpBytes []byte, vecForID common.VectorForID[float32]) (*hnsw, error)
func NewTempVectorForIDThunk ¶ added in v1.24.11
func NewVectorForIDThunk ¶ added in v1.24.11
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.
func ValidateUserConfigUpdate ¶
func ValidateUserConfigUpdate(initial, updated config.VectorIndexConfig) error
Types ¶
type BufferedLinksLogger ¶
type CommitLogCombiner ¶
type CommitLogCombiner struct {
// contains filtered or unexported fields
}
func NewCommitLogCombiner ¶
func NewCommitLogCombiner(rootPath, id string, threshold int64, logger logrus.FieldLogger, ) *CommitLogCombiner
func (*CommitLogCombiner) Do ¶
func (c *CommitLogCombiner) Do() (bool, error)
type CommitLogger ¶
type CommitLogger interface { ID() string AddNode(node *vertex) error SetEntryPointWithMaxLayer(id uint64, level int) error AddLinkAtLevel(nodeid uint64, level int, target uint64) error ReplaceLinksAtLevel(nodeid uint64, level int, targets []uint64) error AddTombstone(nodeid uint64) error RemoveTombstone(nodeid uint64) error DeleteNode(nodeid uint64) error ClearLinks(nodeid uint64) error ClearLinksAtLevel(nodeid uint64, level uint16) error Reset() error Drop(ctx context.Context) error Flush() error Shutdown(ctx context.Context) error RootPath() string SwitchCommitLogs(bool) error AddPQCompression(compressionhelpers.PQData) error AddSQCompression(compressionhelpers.SQData) error }
func MakeNoopCommitLogger ¶
func MakeNoopCommitLogger() (CommitLogger, error)
type CommitlogOption ¶
type CommitlogOption func(l *hnswCommitLogger) error
func WithAllocChecker ¶ added in v1.24.9
func WithAllocChecker(mm memwatch.AllocChecker) CommitlogOption
func WithCommitlogThreshold ¶
func WithCommitlogThreshold(size int64) CommitlogOption
func WithCommitlogThresholdForCombining ¶
func WithCommitlogThresholdForCombining(size int64) CommitlogOption
func WithCondensor ¶ added in v1.24.11
func WithCondensor(condensor Condensor) CommitlogOption
type Config ¶
type Config struct { // internal RootPath string ID string MakeCommitLoggerThunk MakeCommitLogger VectorForIDThunk common.VectorForID[float32] TempVectorForIDThunk common.TempVectorForID Logger logrus.FieldLogger DistanceProvider distancer.Provider PrometheusMetrics *monitoring.PrometheusMetrics AllocChecker memwatch.AllocChecker WaitForCachePrefill bool // metadata for monitoring ShardName string ClassName string }
Config for a new HSNW index, this contains information that is derived internally, e.g. by the shard. All User-settable config is specified in Config.UserConfig
type CorruptCommitLogFixer ¶
type CorruptCommitLogFixer struct {
// contains filtered or unexported fields
}
CorruptCommitLogFixer helps identify potentially corrupt commit logs and tries to mitigate the problem
func NewCorruptedCommitLogFixer ¶
func NewCorruptedCommitLogFixer(logger logrus.FieldLogger) *CorruptCommitLogFixer
func (*CorruptCommitLogFixer) Do ¶
func (fixer *CorruptCommitLogFixer) Do(fileNames []string) ([]string, error)
Do tries to delete files that could be corrupt and removes them from the returned list, indicating that the index should no longer try to read them
A file is considered corrupt if it has the .condensed suffix - yet there is a file with the same name without that suffix. This would indicate that trying to condense the file has somehow failed or been interrupted, as a successful condensing would have been succeeded by the removal of the original file. We thus assume the file must be corrupted, and delete it, so that the original will be used instead.
type DeserializationResult ¶
type DeserializationResult struct { Nodes []*vertex NodesDeleted map[uint64]struct{} Entrypoint uint64 Level uint16 Tombstones map[uint64]struct{} TombstonesDeleted map[uint64]struct{} EntrypointChanged bool CompressionPQData *compressionhelpers.PQData CompressionSQData *compressionhelpers.SQData Compressed bool // If there is no entry for the links at a level to be replaced, we must // assume that all links were appended and prior state must exist // Similarly if we run into a "Clear" we need to explicitly set the replace // flag, so that future appends aren't always appended and we run into a // situation where reading multiple condensed logs in succession leads to too // many connections as discovered in // https://github.com/weaviate/weaviate/issues/1868 LinksReplaced map[uint64]map[uint16]struct{} }
func (DeserializationResult) ReplaceLinks ¶
func (dr DeserializationResult) ReplaceLinks(node uint64, level uint16) bool
type Deserializer ¶
type Deserializer struct {
// contains filtered or unexported fields
}
func NewDeserializer ¶
func NewDeserializer(logger logrus.FieldLogger) *Deserializer
func (*Deserializer) Do ¶
func (d *Deserializer) Do(fd *bufio.Reader, initialState *DeserializationResult, keepLinkReplaceInformation bool) (*DeserializationResult, int, error)
func (*Deserializer) ReadAddLinks ¶
func (d *Deserializer) ReadAddLinks(r io.Reader, res *DeserializationResult, ) (int, error)
func (*Deserializer) ReadAddTombstone ¶
func (d *Deserializer) ReadAddTombstone(r io.Reader, tombstones map[uint64]struct{}) error
func (*Deserializer) ReadClearLinks ¶
func (d *Deserializer) ReadClearLinks(r io.Reader, res *DeserializationResult, keepReplaceInfo bool, ) error
func (*Deserializer) ReadClearLinksAtLevel ¶
func (d *Deserializer) ReadClearLinksAtLevel(r io.Reader, res *DeserializationResult, keepReplaceInfo bool, ) error
func (*Deserializer) ReadCommitType ¶
func (d *Deserializer) ReadCommitType(r io.Reader) (HnswCommitType, error)
func (*Deserializer) ReadDeleteNode ¶
func (d *Deserializer) ReadDeleteNode(r io.Reader, res *DeserializationResult, nodesDeleted map[uint64]struct{}) error
func (*Deserializer) ReadKMeansEncoder ¶ added in v1.18.0
func (d *Deserializer) ReadKMeansEncoder(r io.Reader, data *compressionhelpers.PQData, i uint16) (compressionhelpers.PQEncoder, error)
func (*Deserializer) ReadLink ¶
func (d *Deserializer) ReadLink(r io.Reader, res *DeserializationResult) error
func (*Deserializer) ReadLinks ¶
func (d *Deserializer) ReadLinks(r io.Reader, res *DeserializationResult, keepReplaceInfo bool, ) (int, error)
func (*Deserializer) ReadNode ¶
func (d *Deserializer) ReadNode(r io.Reader, res *DeserializationResult) error
func (*Deserializer) ReadPQ ¶ added in v1.18.0
func (d *Deserializer) ReadPQ(r io.Reader, res *DeserializationResult) (int, error)
func (*Deserializer) ReadRemoveTombstone ¶
func (*Deserializer) ReadSQ ¶ added in v1.26.0
func (d *Deserializer) ReadSQ(r io.Reader, res *DeserializationResult) error
func (*Deserializer) ReadTileEncoder ¶ added in v1.18.0
func (d *Deserializer) ReadTileEncoder(r io.Reader, res *compressionhelpers.PQData, i uint16) (compressionhelpers.PQEncoder, error)
type HnswCommitType ¶
type HnswCommitType uint8 // 256 options, plenty of room for future extensions
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 AddSQ )
func (HnswCommitType) String ¶
func (t HnswCommitType) String() string
type HnswStats ¶ added in v1.24.23
type HnswStats struct { Dimensions int32 `json:"dimensions"` EntryPointID uint64 `json:"entryPointID"` DistributionLayers map[int]uint `json:"distributionLayers"` UnreachablePoints []uint64 `json:"unreachablePoints"` NumTombstones int `json:"numTombstones"` CacheSize int32 `json:"cacheSize"` PQConfiguration ent.PQConfig `json:"pqConfiguration"` }
type Index ¶ added in v1.24.23
type Index interface {
CleanUpTombstonedNodes(shouldAbort cyclemanager.ShouldAbortCallback) error
}
This interface exposes public methods of the HNSW index that are not part of the VectorIndex interface. It is a workaround to avoid circular dependencies.
func AsHNSWIndex ¶ added in v1.24.23
type JSONDumpMap ¶
type JSONDumpNode ¶
type JSONDumpNodeMap ¶
type MakeCommitLogger ¶
type MakeCommitLogger func() (CommitLogger, error)
type MemoryCondensor ¶
type MemoryCondensor struct {
// contains filtered or unexported fields
}
func NewMemoryCondensor ¶
func NewMemoryCondensor(logger logrus.FieldLogger) *MemoryCondensor
func (*MemoryCondensor) AddLinkAtLevel ¶
func (c *MemoryCondensor) AddLinkAtLevel(nodeid uint64, level uint16, target uint64) error
func (*MemoryCondensor) AddLinksAtLevel ¶
func (c *MemoryCondensor) AddLinksAtLevel(nodeid uint64, level uint16, targets []uint64) error
func (*MemoryCondensor) AddNode ¶
func (c *MemoryCondensor) AddNode(node *vertex) error
AddNode adds an empty node
func (*MemoryCondensor) AddPQCompression ¶ added in v1.26.0
func (c *MemoryCondensor) AddPQCompression(data compressionhelpers.PQData) error
func (*MemoryCondensor) AddSQCompression ¶ added in v1.26.0
func (c *MemoryCondensor) AddSQCompression(data compressionhelpers.SQData) error
func (*MemoryCondensor) AddTombstone ¶
func (c *MemoryCondensor) AddTombstone(nodeid uint64) error
func (*MemoryCondensor) DeleteNode ¶ added in v1.24.25
func (c *MemoryCondensor) DeleteNode(id uint64) error
func (*MemoryCondensor) Do ¶
func (c *MemoryCondensor) Do(fileName string) error
func (*MemoryCondensor) RemoveTombstone ¶ added in v1.24.15
func (c *MemoryCondensor) RemoveTombstone(nodeid uint64) error
func (*MemoryCondensor) SetEntryPointWithMaxLayer ¶
func (c *MemoryCondensor) SetEntryPointWithMaxLayer(id uint64, level int) error
func (*MemoryCondensor) SetLinksAtLevel ¶
func (c *MemoryCondensor) SetLinksAtLevel(nodeid uint64, level int, targets []uint64) error
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics(prom *monitoring.PrometheusMetrics, className, shardName string, ) *Metrics
func (*Metrics) AddTombstone ¶
func (m *Metrics) AddTombstone()
func (*Metrics) AddUnexpectedTombstone ¶ added in v1.24.24
func (*Metrics) DeleteVector ¶
func (m *Metrics) DeleteVector()
func (*Metrics) EndCleanup ¶
func (*Metrics) EndTombstoneCycle ¶ added in v1.25.16
func (m *Metrics) EndTombstoneCycle()
func (*Metrics) GrowDuration ¶
func (*Metrics) InsertVector ¶
func (m *Metrics) InsertVector()
func (*Metrics) RemoveTombstone ¶
func (m *Metrics) RemoveTombstone()
func (*Metrics) SetTombstoneDeleteListSize ¶ added in v1.24.9
func (*Metrics) StartCleanup ¶
func (*Metrics) StartTombstoneCycle ¶ added in v1.25.16
func (m *Metrics) StartTombstoneCycle()
func (*Metrics) StartupProgress ¶
func (*Metrics) TombstoneCycleProgress ¶ added in v1.25.16
func (*Metrics) TombstoneFindGlobalEntrypoint ¶ added in v1.24.9
func (m *Metrics) TombstoneFindGlobalEntrypoint()
func (*Metrics) TombstoneFindLocalEntrypoint ¶ added in v1.24.9
func (m *Metrics) TombstoneFindLocalEntrypoint()
func (*Metrics) TombstoneReassignNeighbor ¶ added in v1.24.9
func (m *Metrics) TombstoneReassignNeighbor()
func (*Metrics) TrackInsertObserver ¶
func (*Metrics) TrackStartupIndividual ¶
func (*Metrics) TrackStartupReadCommitlogDiskIO ¶
func (*Metrics) TrackStartupTotal ¶
type MmapCondensor ¶
type MmapCondensor struct {
// contains filtered or unexported fields
}
func NewMmapCondensor ¶
func NewMmapCondensor(connectionsPerLevel int) *MmapCondensor
func (*MmapCondensor) Do ¶
func (c *MmapCondensor) Do(fileName string) error
type MmapCondensorAnalyzer ¶
type MmapCondensorAnalyzer struct {
// contains filtered or unexported fields
}
func (*MmapCondensorAnalyzer) Do ¶
func (a *MmapCondensorAnalyzer) Do(file *os.File) (mmapIndex, error)
func (*MmapCondensorAnalyzer) ReadAddTombstone ¶
func (a *MmapCondensorAnalyzer) ReadAddTombstone(r io.Reader) error
func (*MmapCondensorAnalyzer) ReadClearLinks ¶
func (a *MmapCondensorAnalyzer) ReadClearLinks(r io.Reader) error
func (*MmapCondensorAnalyzer) ReadCommitType ¶
func (a *MmapCondensorAnalyzer) ReadCommitType(r io.Reader) (HnswCommitType, error)
func (*MmapCondensorAnalyzer) ReadDeleteNode ¶
func (a *MmapCondensorAnalyzer) ReadDeleteNode(r io.Reader) error
func (*MmapCondensorAnalyzer) ReadLink ¶
func (a *MmapCondensorAnalyzer) ReadLink(r io.Reader) error
func (*MmapCondensorAnalyzer) ReadLinks ¶
func (a *MmapCondensorAnalyzer) ReadLinks(r io.Reader) error
func (*MmapCondensorAnalyzer) ReadNode ¶
func (a *MmapCondensorAnalyzer) ReadNode(r io.Reader) error
func (*MmapCondensorAnalyzer) ReadRemoveTombstone ¶
func (a *MmapCondensorAnalyzer) ReadRemoveTombstone(r io.Reader) error
type MmapCondensorReader ¶
type MmapCondensorReader struct {
// contains filtered or unexported fields
}
type NoopCommitLogger ¶
type NoopCommitLogger struct{}
NoopCommitLogger implements the CommitLogger interface, but does not actually write anything to disk
func (*NoopCommitLogger) AddLinkAtLevel ¶
func (n *NoopCommitLogger) AddLinkAtLevel(nodeid uint64, level int, target uint64) error
func (*NoopCommitLogger) AddNode ¶
func (n *NoopCommitLogger) AddNode(node *vertex) error
func (*NoopCommitLogger) AddPQCompression ¶ added in v1.26.0
func (n *NoopCommitLogger) AddPQCompression(data compressionhelpers.PQData) error
func (*NoopCommitLogger) AddSQCompression ¶ added in v1.26.0
func (n *NoopCommitLogger) AddSQCompression(data compressionhelpers.SQData) error
func (*NoopCommitLogger) AddTombstone ¶
func (n *NoopCommitLogger) AddTombstone(nodeid uint64) error
func (*NoopCommitLogger) ClearLinks ¶
func (n *NoopCommitLogger) ClearLinks(nodeid uint64) error
func (*NoopCommitLogger) ClearLinksAtLevel ¶
func (n *NoopCommitLogger) ClearLinksAtLevel(nodeid uint64, level uint16) error
func (*NoopCommitLogger) Close ¶
func (n *NoopCommitLogger) Close() error
func (*NoopCommitLogger) DeleteNode ¶
func (n *NoopCommitLogger) DeleteNode(nodeid uint64) error
func (*NoopCommitLogger) Flush ¶
func (n *NoopCommitLogger) Flush() error
func (*NoopCommitLogger) ID ¶
func (n *NoopCommitLogger) ID() string
func (*NoopCommitLogger) NewBufferedLinksLogger ¶
func (n *NoopCommitLogger) NewBufferedLinksLogger() BufferedLinksLogger
func (*NoopCommitLogger) RemoveTombstone ¶
func (n *NoopCommitLogger) RemoveTombstone(nodeid uint64) error
func (*NoopCommitLogger) ReplaceLinksAtLevel ¶
func (n *NoopCommitLogger) ReplaceLinksAtLevel(nodeid uint64, level int, targets []uint64) error
func (*NoopCommitLogger) Reset ¶
func (n *NoopCommitLogger) Reset() error
func (*NoopCommitLogger) RootPath ¶
func (n *NoopCommitLogger) RootPath() string
func (*NoopCommitLogger) SetEntryPointWithMaxLayer ¶
func (n *NoopCommitLogger) SetEntryPointWithMaxLayer(id uint64, level int) error
func (*NoopCommitLogger) StartSwitchLogs ¶
func (n *NoopCommitLogger) StartSwitchLogs() chan struct{}
func (*NoopCommitLogger) SwitchCommitLogs ¶
func (n *NoopCommitLogger) SwitchCommitLogs(force bool) error
Source Files ¶
- backup.go
- bufiowriter.go
- commit_log_combiner.go
- commit_logger.go
- commit_logger_buffered_links_logger.go
- commit_logger_functional_options.go
- commit_logger_noop.go
- compress.go
- condensor.go
- condensor_mmap.go
- condensor_mmap_analyzer.go
- condensor_mmap_reader.go
- config.go
- config_update.go
- corrupt_commit_logs_fixer.go
- debug.go
- delete.go
- deserializer.go
- flat_search.go
- heuristic.go
- index.go
- insert.go
- insert_metrics.go
- maintenance.go
- metrics.go
- neighbor_connections.go
- pools.go
- search.go
- search_with_max_dist.go
- startup.go
- vector_cache_prefiller.go
- vertex.go