Uses of Interface
org.apache.lucene.util.Bits
-
Packages that use Bits Package Description org.apache.lucene.analysis.util Utility functions for text analysis.org.apache.lucene.backward_codecs.lucene50 Lucene 5.0 file format.org.apache.lucene.backward_codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.backward_codecs.lucene91 Lucene 9.1 file format.org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.codecs.lucene92 Lucene 9.2 file format.org.apache.lucene.codecs.perfield Postings format that can delegate to different formats per-field.org.apache.lucene.codecs.simpletext Simpletext Codec: writes human readable postings.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.misc.index Misc index tools and index support.org.apache.lucene.sandbox.codecs.idversion A primary-key postings format that associates a version (long) with each term and can provide fail-fast lookups by ID and version.org.apache.lucene.sandbox.document This package contains several point types:BigIntegerPointfor 128-bit integersLatLonPointfor latitude/longitude geospatial pointsorg.apache.lucene.sandbox.search This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial queries.org.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.util Some utility classes.org.apache.lucene.util.hnsw Navigable Small-World graph, nominally Hierarchical but currently only has a single layer. -
-
Uses of Bits in org.apache.lucene.analysis.util
Fields in org.apache.lucene.analysis.util declared as Bits Modifier and Type Field Description static BitsUnicodeProps. WHITESPACEBitset with Unicode WHITESPACE code points.Methods in org.apache.lucene.analysis.util that return Bits Modifier and Type Method Description private static BitsUnicodeProps. createBits(int... codepoints) -
Uses of Bits in org.apache.lucene.backward_codecs.lucene50
Methods in org.apache.lucene.backward_codecs.lucene50 that return Bits Modifier and Type Method Description BitsLucene50LiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Methods in org.apache.lucene.backward_codecs.lucene50 with parameters of type Bits Modifier and Type Method Description private intLucene50LiveDocsFormat. writeBits(IndexOutput output, Bits bits)voidLucene50LiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Note: although this format is only used on older versions, we need to keep the write logic in addition to the read logic. -
Uses of Bits in org.apache.lucene.backward_codecs.lucene90
Methods in org.apache.lucene.backward_codecs.lucene90 that return Bits Modifier and Type Method Description private BitsLucene90HnswVectorsReader. getAcceptOrds(Bits acceptDocs, Lucene90HnswVectorsReader.FieldEntry fieldEntry)Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type Bits Modifier and Type Method Description private BitsLucene90HnswVectorsReader. getAcceptOrds(Bits acceptDocs, Lucene90HnswVectorsReader.FieldEntry fieldEntry)TopDocsLucene90HnswVectorsReader. search(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit)static NeighborQueueLucene90OnHeapHnswGraph. search(float[] query, int topK, int numSeed, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, int visitedLimit, java.util.SplittableRandom random)Searches for the nearest neighbors of a query vector. -
Uses of Bits in org.apache.lucene.backward_codecs.lucene91
Methods in org.apache.lucene.backward_codecs.lucene91 that return Bits Modifier and Type Method Description private BitsLucene91HnswVectorsReader. getAcceptOrds(Bits acceptDocs, Lucene91HnswVectorsReader.FieldEntry fieldEntry)Methods in org.apache.lucene.backward_codecs.lucene91 with parameters of type Bits Modifier and Type Method Description private BitsLucene91HnswVectorsReader. getAcceptOrds(Bits acceptDocs, Lucene91HnswVectorsReader.FieldEntry fieldEntry)TopDocsLucene91HnswVectorsReader. search(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit) -
Uses of Bits in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return Bits Modifier and Type Method Description abstract BitsLiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Read live docs bits.Methods in org.apache.lucene.codecs with parameters of type Bits Modifier and Type Method Description abstract TopDocsKnnVectorsReader. search(java.lang.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 voidLiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Persist live docs bits. -
Uses of Bits in org.apache.lucene.codecs.lucene90
Methods in org.apache.lucene.codecs.lucene90 that return Bits Modifier and Type Method Description BitsLucene90LiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Methods in org.apache.lucene.codecs.lucene90 with parameters of type Bits Modifier and Type Method Description private intLucene90LiveDocsFormat. writeBits(IndexOutput output, Bits bits)voidLucene90LiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of Bits in org.apache.lucene.codecs.lucene92
Methods in org.apache.lucene.codecs.lucene92 that return Bits Modifier and Type Method Description (package private) BitsOffHeapVectorValues.DenseOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)(package private) BitsOffHeapVectorValues.EmptyOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)(package private) abstract BitsOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)(package private) BitsOffHeapVectorValues.SparseOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)Methods in org.apache.lucene.codecs.lucene92 with parameters of type Bits Modifier and Type Method Description (package private) BitsOffHeapVectorValues.DenseOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)(package private) BitsOffHeapVectorValues.EmptyOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)(package private) abstract BitsOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)(package private) BitsOffHeapVectorValues.SparseOffHeapVectorValues. getAcceptOrds(Bits acceptDocs)TopDocsLucene92HnswVectorsReader. search(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit) -
Uses of Bits in org.apache.lucene.codecs.perfield
Methods in org.apache.lucene.codecs.perfield with parameters of type Bits Modifier and Type Method Description TopDocsPerFieldKnnVectorsFormat.FieldsReader. search(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit) -
Uses of Bits in org.apache.lucene.codecs.simpletext
Classes in org.apache.lucene.codecs.simpletext that implement Bits Modifier and Type Class Description (package private) static classSimpleTextLiveDocsFormat.SimpleTextBitsMethods in org.apache.lucene.codecs.simpletext that return Bits Modifier and Type Method Description BitsSimpleTextLiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Methods in org.apache.lucene.codecs.simpletext with parameters of type Bits Modifier and Type Method Description TopDocsSimpleTextKnnVectorsReader. search(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit)voidSimpleTextLiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of Bits in org.apache.lucene.index
Classes in org.apache.lucene.index that implement Bits Modifier and Type Class Description (package private) classBitsSliceExposes a slice of an existing Bits as a new Bits.classMultiBitsConcatenates multiple Bits together, on every lookup.private static classSortingCodecReader.SortingBitsFields in org.apache.lucene.index declared as Bits Modifier and Type Field Description (package private) BitsMergePolicy.MergeReader. hardLiveDocsprivate BitsSegmentReader. hardLiveDocsprivate BitsSortingCodecReader.SortingBits. inBits[]MergeState. liveDocsLive docs for each reader(package private) BitsMultiSorter.LeafAndDocID. liveDocsprivate BitsPendingDeletes. liveDocsprivate BitsSegmentReader. liveDocsprivate BitsBitsSlice. parentprivate Bits[]MultiBits. subsprivate BitsFieldUpdatesBuffer.BufferedUpdateIterator. updatesWithValueMethods in org.apache.lucene.index that return Bits Modifier and Type Method Description (package private) BitsPendingDeletes. getHardLiveDocs()Returns a snapshot of the hard live docs.(package private) BitsPendingSoftDeletes. getHardLiveDocs()BitsReadersAndUpdates. getHardLiveDocs()Returns the live-docs bits excluding documents that are not live due to soft-deletesBitsSegmentReader. getHardLiveDocs()Returns the live docs that are not hard-deleted.BitsDocValuesLeafReader. getLiveDocs()BitsFilterCodecReader. getLiveDocs()BitsFilterLeafReader. 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.BitsParallelLeafReader. getLiveDocs()(package private) BitsPendingDeletes. getLiveDocs()Returns a snapshot of the current live docs.BitsReadersAndUpdates. getLiveDocs()Returns a snapshot of the live docs.BitsSegmentReader. getLiveDocs()BitsSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader. getLiveDocs()BitsSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader. getLiveDocs()BitsSortingCodecReader. getLiveDocs()Methods in org.apache.lucene.index with parameters of type Bits Modifier and Type Method Description private booleanPendingDeletes. assertCheckLiveDocs(Bits bits, int expectedLength, int expectedDeleteCount)private static booleanSegmentReader. assertLiveDocs(boolean isNRT, Bits hardLiveDocs, Bits liveDocs)private static voidIndexWriter. carryOverHardDeletes(ReadersAndUpdates mergedReadersAndUpdates, int maxDoc, Bits mergeLiveDocs, Bits prevHardLiveDocs, Bits currentHardLiveDocs, MergeState.DocMap segDocMap)This method carries over hard-deleted documents that are applied to the source segment during a merge.private static CheckIndex.Status.TermIndexStatusCheckIndex. checkFields(Fields fields, Bits liveDocs, int maxDoc, FieldInfos fieldInfos, NormsProducer normsProducer, boolean doPrint, boolean isVectors, java.io.PrintStream infoStream, boolean verbose, boolean doSlowChecks)checks Fields api is consistent with itself.private voidIndexWriter. countSoftDeletes(CodecReader reader, Bits wrappedLiveDocs, Bits hardLiveDocs, Counter softDeleteCounter, Counter hardDeleteCounter)(package private) static intPendingSoftDeletes. countSoftDeletes(DocIdSetIterator softDeletedDocs, Bits hardDeletes)(package private) static PackedLongValuesMergeState. removeDeletes(int maxDoc, Bits liveDocs)TopDocsCodecReader. searchNearestVectors(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit)TopDocsDocValuesLeafReader. searchNearestVectors(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit)TopDocsExitableDirectoryReader.ExitableFilterAtomicReader. searchNearestVectors(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit)TopDocsFilterLeafReader. searchNearestVectors(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit)abstract TopDocsLeafReader. searchNearestVectors(java.lang.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.TopDocsParallelLeafReader. searchNearestVectors(java.lang.String fieldName, float[] target, int k, Bits acceptDocs, int visitedLimit)private FixedBitSetDocumentsWriterPerThread. sortLiveDocs(Bits liveDocs, Sorter.DocMap sortMap)(package private) static FilterCodecReaderFilterCodecReader. wrapLiveDocs(CodecReader reader, Bits liveDocs, int numDocs)Returns a filtered codec reader with the given live docs and numDocs.Constructors in org.apache.lucene.index with parameters of type Bits Constructor Description BitsSlice(Bits parent, ReaderSlice slice)LeafAndDocID(int readerIndex, Bits liveDocs, int maxDoc, int numComparables)MergeReader(SegmentReader reader, Bits hardLiveDocs)MultiBits(Bits[] subs, int[] starts, boolean defaultValue)PendingDeletes(SegmentCommitInfo info, Bits liveDocs, boolean liveDocsInitialized)SegmentReader(SegmentCommitInfo si, SegmentReader sr, Bits liveDocs, Bits hardLiveDocs, int numDocs, boolean isNRT)Create new SegmentReader sharing core from a previous SegmentReader and using the provided liveDocs, and recording whether those liveDocs were carried in ram (isNRT=true).SortingBits(Bits in, Sorter.DocMap docMap) -
Uses of Bits in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory that return Bits Modifier and Type Method Description BitsMemoryIndex.MemoryIndexReader. getLiveDocs()Methods in org.apache.lucene.index.memory with parameters of type Bits Modifier and Type Method Description TopDocsMemoryIndex.MemoryIndexReader. searchNearestVectors(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit) -
Uses of Bits in org.apache.lucene.misc.index
Fields in org.apache.lucene.misc.index declared as Bits Modifier and Type Field Description (package private) BitsPKIndexSplitter.DocumentFilteredLeafIndexReader. liveDocsMethods in org.apache.lucene.misc.index that return Bits Modifier and Type Method Description BitsIndexRearranger.DocSelectorFilteredCodecReader. getLiveDocs()BitsMultiPassIndexSplitter.FakeDeleteLeafIndexReader. getLiveDocs()BitsPKIndexSplitter.DocumentFilteredLeafIndexReader. getLiveDocs() -
Uses of Bits in org.apache.lucene.sandbox.codecs.idversion
Fields in org.apache.lucene.sandbox.codecs.idversion declared as Bits Modifier and Type Field Description private BitsIDVersionPostingsWriter. liveDocsConstructors in org.apache.lucene.sandbox.codecs.idversion with parameters of type Bits Constructor Description IDVersionPostingsWriter(Bits liveDocs) -
Uses of Bits in org.apache.lucene.sandbox.document
Fields in org.apache.lucene.sandbox.document declared as Bits Modifier and Type Field Description (package private) BitsFloatPointNearestNeighbor.NearestVisitor. curLiveDocs -
Uses of Bits in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as Bits Modifier and Type Field Description BitsNearestNeighbor.NearestVisitor. curLiveDocs -
Uses of Bits in org.apache.lucene.search
Methods in org.apache.lucene.search that return Bits Modifier and Type Method Description BitsDocIdSet. bits()Optionally provides aBitsinterface for random access to matching documents.Methods in org.apache.lucene.search with parameters of type Bits Modifier and Type Method Description private TopDocsKnnVectorQuery. approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit)(package private) voidBooleanScorer.BulkScorerAndDoc. score(LeafCollector collector, Bits acceptDocs, int min, int max)intBooleanScorer. score(LeafCollector collector, Bits acceptDocs, int min, int max)voidBulkScorer. score(LeafCollector collector, Bits acceptDocs)Scores and collects all matching documents.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)intReqExclBulkScorer. score(LeafCollector collector, Bits acceptDocs, int min, int max)intWeight.DefaultBulkScorer. score(LeafCollector collector, Bits acceptDocs, int min, int max)(package private) static voidWeight.DefaultBulkScorer. scoreAll(LeafCollector collector, DocIdSetIterator iterator, TwoPhaseIterator twoPhase, Bits acceptDocs)Specialized method to bulk-score all hits; we separate this fromWeight.DefaultBulkScorer.scoreRange(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.util.Bits, int, int)to help out hotspot.(package private) static intWeight.DefaultBulkScorer. scoreRange(LeafCollector collector, DocIdSetIterator iterator, TwoPhaseIterator twoPhase, Bits acceptDocs, int currentDoc, int end)Specialized method to bulk-score a range of hits; we separate this fromWeight.DefaultBulkScorer.scoreAll(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.util.Bits)to help out hotspot.private BooleanScorer.BulkScorerAndDocBooleanScorer. scoreWindow(BooleanScorer.BulkScorerAndDoc top, LeafCollector collector, Bits acceptDocs, int min, int max)private voidBooleanScorer. scoreWindowIntoBitSetAndReplay(LeafCollector collector, Bits acceptDocs, int base, int min, int max, BooleanScorer.BulkScorerAndDoc[] scorers, int numScorers)private voidBooleanScorer. scoreWindowMultipleScorers(LeafCollector collector, Bits acceptDocs, int windowBase, int windowMin, int windowMax, int maxFreq)private voidBooleanScorer. scoreWindowSingleScorer(BooleanScorer.BulkScorerAndDoc bulkScorer, LeafCollector collector, Bits acceptDocs, int windowMin, int windowMax, int max) -
Uses of Bits in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as Bits Modifier and Type Field Description private BitsGroupingSearch. matchingGroupHeadsMethods in org.apache.lucene.search.grouping that return Bits Modifier and Type Method Description BitsGroupingSearch. getAllGroupHeads()Returns the matching group heads ifGroupingSearch.setAllGroupHeads(boolean)was set to true or an empty bit set. -
Uses of Bits in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight that return Bits Modifier and Type Method Description BitsTermVectorLeafReader. getLiveDocs()Methods in org.apache.lucene.search.highlight with parameters of type Bits Modifier and Type Method Description TopDocsTermVectorLeafReader. searchNearestVectors(java.lang.String field, float[] target, int k, Bits acceptDocs, int visitedLimit) -
Uses of Bits in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join that return Bits Modifier and Type Method Description static BitsBlockJoinSelector. wrap(Bits docsWithValue, BitSet parents, BitSet children)Return aBitsinstance that returns true if, and only if, any of the children of the given parent document has a value.Methods in org.apache.lucene.search.join with parameters of type Bits Modifier and Type Method Description static BitsBlockJoinSelector. wrap(Bits docsWithValue, BitSet parents, BitSet children)Return aBitsinstance that returns true if, and only if, any of the children of the given parent document has a value. -
Uses of Bits in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as Bits Modifier and Type Field Description private BitsDocumentDictionary.DocumentInputIterator. liveDocsMethods in org.apache.lucene.search.suggest that return Bits Modifier and Type Method Description abstract BitsBitsProducer. getBits(LeafReaderContext context)ReturnBitsfor the given leaf. -
Uses of Bits in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as Bits Modifier and Type Field Description private BitsCompletionScorer. filterDocsMethods in org.apache.lucene.search.suggest.document with parameters of type Bits Modifier and Type Method Description booleanCompletionScorer. accept(int docID, Bits liveDocs)Returns true if a document withdocIDis accepted, false if the docID maps to a deleted document or has been filtered outvoidNRTSuggester. lookup(CompletionScorer scorer, Bits acceptDocs, TopSuggestDocsCollector collector)Collects at mostTopSuggestDocsCollector.getCountToCollect()completions that match the providedCompletionScorer.intCompletionScorer. score(LeafCollector collector, Bits acceptDocs, int min, int max)Constructors in org.apache.lucene.search.suggest.document with parameters of type Bits Constructor Description CompletionScorer(CompletionWeight weight, NRTSuggester suggester, LeafReader reader, Bits filterDocs, boolean filtered, Automaton automaton)Creates a scorer for a field-specificsuggesterscoped byacceptDocs -
Uses of Bits in org.apache.lucene.util
Classes in org.apache.lucene.util that implement Bits Modifier and Type Class Description static classBits.MatchAllBitsBits impl of the specified length with all bits set.static classBits.MatchNoBitsBits impl of the specified length with no bits set.classBitSetBase implementation for a bit set.(package private) classFixedBitsImmutable twin of FixedBitSet.classFixedBitSetBitSet of fixed length (numBits), backed by accessible (FixedBitSet.getBits()) long[], accessed with an int index, implementingBitsandDocIdSet.classSparseFixedBitSetA bit set that only stores longs that have at least one bit which is set.Fields in org.apache.lucene.util declared as Bits Modifier and Type Field Description static Bits[]Bits. EMPTY_ARRAYMethods in org.apache.lucene.util that return Bits Modifier and Type Method Description BitsFixedBitSet. asReadOnlyBits()Convert this instance to read-onlyBits.BitsNotDocIdSet. bits()Methods in org.apache.lucene.util with parameters of type Bits Modifier and Type Method Description static FixedBitSetFixedBitSet. copyOf(Bits bits)Make a copy of the given bits. -
Uses of Bits in org.apache.lucene.util.hnsw
Methods in org.apache.lucene.util.hnsw with parameters of type Bits Modifier and Type Method Description static NeighborQueueHnswGraphSearcher. search(float[] query, int topK, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graph, Bits acceptOrds, int visitedLimit)Searches HNSW graph for the nearest neighbors of a query vector.private NeighborQueueHnswGraphSearcher. searchLevel(float[] query, int topK, int level, int[] eps, RandomAccessVectorValues vectors, HnswGraph graph, Bits acceptOrds, int visitedLimit)
-