Uses of Class
org.apache.lucene.util.BitSet
Package
Description
Some utility classes.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of BitSet in org.apache.lucene.util
Modifier and TypeClassDescriptionfinal class
BitSet of fixed length (numBits), backed by accessible (FixedBitSet.getBits()
) long[], accessed with an int index, implementingBits
andDocIdSet
.class
A bit set that only stores longs that have at least one bit which is set.Modifier and TypeMethodDescriptionBitDocIdSet.bits()
BitSetIterator.getBitSet()
Return the wrappedBitSet
.static BitSet
BitSet.of
(DocIdSetIterator it, int maxDoc) Build aBitSet
from the content of the providedDocIdSetIterator
.ModifierConstructorDescriptionBitDocIdSet
(BitSet set) Same asBitDocIdSet(BitSet, long)
but uses the set'sapproximate cardinality
as a cost.BitDocIdSet
(BitSet set, long cost) BitSetIterator
(BitSet bits, long cost) Sole constructor. -
Uses of BitSet in org.apache.lucene.util.hnsw
Modifier and TypeMethodDescriptionstatic InitializedHnswGraphBuilder
InitializedHnswGraphBuilder.fromGraph
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, HnswGraph initializerGraph, int[] newOrdMap, BitSet initializedNodes, int totalNumberOfVectors) Create a new HnswGraphBuilder that is initialized with the provided HnswGraph.protected final int[]
IncrementalHnswGraphMerger.getNewOrdMapping
(DocIdSetIterator mergedVectorIterator, BitSet initializedNodes) Creates a new mapping from old ordinals to new ordinals and returns the total number of vectors in the newly merged segment.ModifierConstructorDescriptionHnswConcurrentMergeBuilder
(TaskExecutor taskExecutor, int numWorker, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, OnHeapHnswGraph hnsw, BitSet initializedNodes) HnswGraphSearcher
(NeighborQueue candidates, BitSet visited) Creates a new graph searcher.InitializedHnswGraphBuilder
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph initializedGraph, BitSet initializedNodes)