IProgressReporter Interface
Definition
Namespace: HNSW.Net
public interface IProgressReporter
The hook the library uses to push progress out during a long AddItems call. Implement it and pass an instance to the AddItems(items, progressReporter) overload.
Remarks
Progress is called from the inserting thread — no allocation or synchronisation overhead, just a method call per tick. For a UI client, marshal across to the UI thread yourself. KNNSearch does not take an IProgressReporter; it completes in microseconds. See Progress reporting.
Methods
| Name | Description |
|---|---|
Progress(current, total) |
Reports the count inserted so far against the total for this call. |
Progress
void Progress(int current, int total)
Called with the number of items inserted so far (current) and the total to insert in this AddItems call (total). total is the size of the current batch, not the cumulative graph size — track cumulative progress yourself across chunks.
Applies to
HNSW.Net — see Progress reporting and SmallWorld<T>.AddItems.