iscp

package
v0.0.0-debug-20260702 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package iscp is the central wiring point for per-algorithm ISCP hooks. Each blank import below transitively runs the plugin's iscp sub-package init(), which calls iscp.Register(...) to install its Hooks into the pkg/iscp registry. Look this up by algo string at runtime from NewIndexConsumer / NewIndexSqlWriter.

Mirrors pkg/indexplugin/all/all.go's role for the AlgoPlugin (catalog / compile / plan) side. Kept in a separate sub-package so the wiring sites don't share an import graph — pkg/iscp transitively pulls in pkg/sql/plan (via pkg/cdc), and pkg/sql/plan blank-imports pkg/indexplugin/all; adding iscp.Register calls under pkg/indexplugin/all would close that loop into a cycle. This package is reachable only from pkg/sql/compile/plugin_context.go (downstream of both pkg/iscp and pkg/sql/plan), so the one-way edge stays clean.

Adding a new ISCP-participating algorithm

Add a blank import below for the algorithm's plugin/iscp/ package. That package's own init() does the iscp.Register call. GPU-only algorithms (CAGRA, IVF-PQ) go under a `//go:build gpu` import file alongside their AlgoPlugin registration in pkg/indexplugin/all/all_gpu.go.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL