Uses of Interface
org.apache.lucene.util.Bits
Packages that use Bits
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
HNSW vector helper classes.
Lucene 9.0 file format.
Lucene 9.5 file format.
Lucene 9.9 file format.
Postings format that can delegate to different formats per-field.
Code to maintain and access indices.
Code to search indices.
Some utility classes.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of Bits in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return BitsModifier and TypeMethodDescriptionabstract BitsLiveDocsFormat.readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) Read live docs bits.Methods in org.apache.lucene.codecs with parameters of type BitsModifier and TypeMethodDescriptionabstract voidKnnVectorsReader.search(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract voidKnnVectorsReader.search(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract voidLiveDocsFormat.writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Persist live docs bits. -
Uses of Bits in org.apache.lucene.codecs.hnsw
Methods in org.apache.lucene.codecs.hnsw with parameters of type BitsModifier and TypeMethodDescriptionvoidFlatVectorsReader.search(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidFlatVectorsReader.search(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs.lucene90
Methods in org.apache.lucene.codecs.lucene90 that return BitsModifier and TypeMethodDescriptionLucene90LiveDocsFormat.readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) Methods in org.apache.lucene.codecs.lucene90 with parameters of type BitsModifier and TypeMethodDescriptionvoidLucene90LiveDocsFormat.writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of Bits in org.apache.lucene.codecs.lucene95
Methods in org.apache.lucene.codecs.lucene95 that return BitsModifier and TypeMethodDescriptionOffHeapByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds(Bits acceptDocs) OffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds(Bits acceptDocs) Methods in org.apache.lucene.codecs.lucene95 with parameters of type BitsModifier and TypeMethodDescriptionOffHeapByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds(Bits acceptDocs) OffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds(Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 that return BitsModifier and TypeMethodDescriptionOffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds(Bits acceptDocs) Methods in org.apache.lucene.codecs.lucene99 with parameters of type BitsModifier and TypeMethodDescriptionOffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds(Bits acceptDocs) voidLucene99HnswVectorsReader.search(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidLucene99HnswVectorsReader.search(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs.perfield
Methods in org.apache.lucene.codecs.perfield with parameters of type BitsModifier and TypeMethodDescriptionvoidPerFieldKnnVectorsFormat.FieldsReader.search(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidPerFieldKnnVectorsFormat.FieldsReader.search(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.index
Classes in org.apache.lucene.index that implement BitsModifier and TypeClassDescriptionfinal classConcatenates multiple Bits together, on every lookup.Fields in org.apache.lucene.index declared as BitsMethods in org.apache.lucene.index that return BitsModifier and TypeMethodDescriptionKnnVectorValues.getAcceptOrds(Bits acceptDocs) Returns a Bits accepting docs accepted by the argument and having a vector valueSegmentReader.getHardLiveDocs()Returns the live docs that are not hard-deleted.FilterCodecReader.getLiveDocs()FilterLeafReader.getLiveDocs()abstract BitsLeafReader.getLiveDocs()Returns theBitsrepresenting live (not deleted) docs.static BitsMultiBits.getLiveDocs(IndexReader reader) Returns a singleBitsinstance for this reader, merging live Documents on the fly.ParallelLeafReader.getLiveDocs()SegmentReader.getLiveDocs()SortingCodecReader.getLiveDocs()Methods in org.apache.lucene.index with parameters of type BitsModifier and TypeMethodDescriptionKnnVectorValues.getAcceptOrds(Bits acceptDocs) Returns a Bits accepting docs accepted by the argument and having a vector valuefinal voidCodecReader.searchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) final voidCodecReader.searchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) voidExitableDirectoryReader.ExitableFilterAtomicReader.searchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidExitableDirectoryReader.ExitableFilterAtomicReader.searchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) voidFilterLeafReader.searchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidFilterLeafReader.searchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) final TopDocsLeafReader.searchNearestVectors(String field, byte[] target, int k, Bits acceptDocs, int visitedLimit) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract voidLeafReader.searchNearestVectors(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.final TopDocsLeafReader.searchNearestVectors(String field, float[] target, int k, Bits acceptDocs, int visitedLimit) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract voidLeafReader.searchNearestVectors(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.voidParallelLeafReader.searchNearestVectors(String fieldName, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidParallelLeafReader.searchNearestVectors(String fieldName, float[] target, KnnCollector knnCollector, Bits acceptDocs) Constructors in org.apache.lucene.index with parameters of type BitsModifierConstructorDescriptionMergeState(MergeState.DocMap[] docMaps, SegmentInfo segmentInfo, FieldInfos mergeFieldInfos, StoredFieldsReader[] storedFieldsReaders, TermVectorsReader[] termVectorsReaders, NormsProducer[] normsProducers, DocValuesProducer[] docValuesProducers, FieldInfos[] fieldInfos, Bits[] liveDocs, FieldsProducer[] fieldsProducers, PointsReader[] pointsReaders, KnnVectorsReader[] knnVectorsReaders, int[] maxDocs, InfoStream infoStream, Executor intraMergeTaskExecutor, boolean needsIndexSort) Create a new merge instance. -
Uses of Bits in org.apache.lucene.search
Methods in org.apache.lucene.search that return BitsModifier and TypeMethodDescriptionDocIdSet.bits()Deprecated.this method is redundant and will be removed.Methods in org.apache.lucene.search with parameters of type BitsModifier and TypeMethodDescriptionprotected TopDocsByteVectorSimilarityQuery.approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitLimit, KnnCollectorManager knnCollectorManager) protected TopDocsFloatVectorSimilarityQuery.approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitLimit, KnnCollectorManager knnCollectorManager) protected TopDocsKnnByteVectorQuery.approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) protected TopDocsKnnFloatVectorQuery.approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) protected TopDocsPatienceKnnVectorQuery.approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) protected TopDocsSeededKnnVectorQuery.approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) abstract voidDocIdSetBulkIterator.iterate(LeafCollector collector, Bits acceptDocs, int min, int max) Iterate over documents contained in this iterator and callLeafCollector.collect(int)on them.abstract intBulkScorer.score(LeafCollector collector, Bits acceptDocs, int min, int max) Collects matching documents in a range and return an estimation of the next matching document which is on or aftermax.intConstantScoreQuery.ConstantBulkScorer.score(LeafCollector collector, Bits acceptDocs, int min, int max) intWeight.DefaultBulkScorer.score(LeafCollector collector, Bits acceptDocs, int min, int max) -
Uses of Bits in org.apache.lucene.util
Classes in org.apache.lucene.util that implement BitsModifier and TypeClassDescriptionstatic classBits impl of the specified length with all bits set.static classBits impl of the specified length with no bits set.classBase implementation for a bit set.final classBitSet of fixed length (numBits), backed by accessible (FixedBitSet.getBits()) long[], accessed with an int index, implementingBitsandDocIdSet.classA bit set that only stores longs that have at least one bit which is set.Fields in org.apache.lucene.util declared as BitsMethods in org.apache.lucene.util that return BitsModifier and TypeMethodDescriptionFixedBitSet.asReadOnlyBits()Convert this instance to read-onlyBits.NotDocIdSet.bits()Deprecated.Methods in org.apache.lucene.util with parameters of type Bits -
Uses of Bits in org.apache.lucene.util.hnsw
Methods in org.apache.lucene.util.hnsw that return BitsModifier and TypeMethodDescriptionRandomVectorScorer.AbstractRandomVectorScorer.getAcceptOrds(Bits acceptDocs) default BitsRandomVectorScorer.getAcceptOrds(Bits acceptDocs) Returns theBitsrepresenting live documents.UpdateableRandomVectorScorer.AbstractUpdateableRandomVectorScorer.getAcceptOrds(Bits acceptDocs) Methods in org.apache.lucene.util.hnsw with parameters of type BitsModifier and TypeMethodDescriptionHnswGraphMerger.addReader(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs) Adds a reader to the graph merger to record the stateIncrementalHnswGraphMerger.addReader(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs) Adds a reader to the graph merger if it meets the following criteria: 1.static FilteredHnswGraphSearcherCreates a new filtered graph searcher.RandomVectorScorer.AbstractRandomVectorScorer.getAcceptOrds(Bits acceptDocs) default BitsRandomVectorScorer.getAcceptOrds(Bits acceptDocs) Returns theBitsrepresenting live documents.UpdateableRandomVectorScorer.AbstractUpdateableRandomVectorScorer.getAcceptOrds(Bits acceptDocs) static KnnCollectorHnswGraphSearcher.search(RandomVectorScorer scorer, int topK, OnHeapHnswGraph graph, Bits acceptOrds, int visitedLimit) SearchOnHeapHnswGraph, this method is thread safe.static voidHnswGraphSearcher.search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds) static voidHnswGraphSearcher.search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds, int filteredDocCount) Searches the HNSW graph for the nearest neighbors of a query vector.