CloseableRandomVectorScorerSupplier (Lucene 10.5.1 core API)
Description: declaration: package: org.apache.lucene.util.hnsw, interface: CloseableRandomVectorScorerSupplier

Package org.apache.lucene.util.hnsw

# Interface CloseableRandomVectorScorerSupplier

All Superinterfaces:
  `AutoCloseable`, `Closeable`, `RandomVectorScorerSupplier`

public interface CloseableRandomVectorScorerSupplier extends Closeable, RandomVectorScorerSupplier
A supplier that creates `UpdateableRandomVectorScorer` from an ordinal. Caller should be sure to close after use

NOTE: the `RandomVectorScorerSupplier.copy()` returned `RandomVectorScorerSupplier` is not necessarily closeable

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CloseableRandomVectorScorerSupplier`
  `create(RandomVectorScorerSupplier supplier, int totalVectorCount, Closeable onClose)`
  `int`
  `totalVectorCount()`

  ### Methods inherited from interface java.io.Closeable

  `close`

  ### Methods inherited from interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier

  `copy, scorer`

- ## Method Details

  - ### totalVectorCount

    int totalVectorCount()

  - ### create

    static CloseableRandomVectorScorerSupplier create(RandomVectorScorerSupplier supplier, int totalVectorCount, Closeable onClose)