Documentation
¶
Overview ¶
Package iscp provides HNSW's ISCP hook layer: writer construction and consumer-loop dispatch.
The writer and runner bodies live in pkg/iscp itself (HnswSqlWriter, runHnsw / RunHnsw[T]) — code motion would force exporting a long list of BaseIndexSqlWriter fields and bring no functional benefit, so this package is a thin adapter that satisfies iscp.Hooks by delegating to the existing pkg/iscp surface.
Registered from pkg/indexplugin/all/all.go via iscp.Register.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct{}
Hooks implements iscp.Hooks for HNSW.
func (Hooks) NewSqlWriter ¶
func (Hooks) NewSqlWriter(jobID iscppkg.JobID, info *iscppkg.ConsumerInfo, tabledef *plan.TableDef, indexdefs []*plan.IndexDef) (iscppkg.IndexSqlWriter, error)
NewSqlWriter delegates to iscp.NewHnswSqlWriter — the existing factory already does the float32/float64 dispatch based on the source table's vector column type.
func (Hooks) Run ¶
func (Hooks) Run(c *iscppkg.IndexConsumer, ctx context.Context, errch chan error, r iscppkg.DataRetriever)
Run dispatches to the right RunHnsw[T] specialization based on the writer's element type. Equivalent to the type-switch that previously lived inside IndexConsumer.run.