Class PrefetchableFlatVectorScorer

java.lang.Object
org.apache.lucene.codecs.hnsw.PrefetchableFlatVectorScorer
All Implemented Interfaces:
FlatVectorsScorer

public class PrefetchableFlatVectorScorer extends Object implements FlatVectorsScorer
A FlatVectorsScorer wrapper that enables prefetching of vector data before scoring.

This implementation demonstrates how to use prefetch operations with KNN search to preload vectors into memory before distance computations, potentially improving performance by reducing memory access latency during bulk scoring operations.

The prefetching occurs in RandomVectorScorer.bulkScore(int[], float[], int) before delegating to the underlying scorer.

WARNING: This API is experimental and might change in incompatible ways in the next release.