Uses of Class
org.apache.lucene.index.Sorter.DocMap
Packages that use Sorter.DocMap
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
A simple bit-vector format that supports hamming distance and storing vectors in an HNSW graph
Lucene 9.9 file format.
Postings format that can delegate to different formats per-field.
Code to maintain and access indices.
Misc index tools and index support.
-
Uses of Sorter.DocMap in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type Sorter.DocMapModifier and TypeMethodDescriptionvoid
BufferingKnnVectorsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) abstract void
KnnVectorsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) Flush all buffered data on disk *static void
KnnVectorsWriter.mapOldOrdToNewOrd
(DocsWithFieldSet oldDocIds, Sorter.DocMap sortMap, int[] old2NewOrd, int[] new2OldOrd, DocsWithFieldSet newDocsWithField) Given old doc ids and an id mapping, maps old ordinal to new ordinal.Constructors in org.apache.lucene.codecs with parameters of type Sorter.DocMapModifierConstructorDescription(package private)
SortingByteVectorValues
(BufferingKnnVectorsWriter.BufferedByteVectorValues delegate, DocsWithFieldSet docsWithField, Sorter.DocMap sortMap) (package private)
SortingFloatVectorValues
(BufferingKnnVectorsWriter.BufferedFloatVectorValues delegate, DocsWithFieldSet docsWithField, Sorter.DocMap sortMap) -
Uses of Sorter.DocMap in org.apache.lucene.codecs.bitvectors
Methods in org.apache.lucene.codecs.bitvectors with parameters of type Sorter.DocMapModifier and TypeMethodDescriptionvoid
HnswBitVectorsFormat.FlatBitVectorsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) -
Uses of Sorter.DocMap in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 with parameters of type Sorter.DocMapModifier and TypeMethodDescriptionvoid
Lucene99FlatVectorsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) void
Lucene99HnswVectorsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) void
Lucene99ScalarQuantizedVectorsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) private void
Lucene99FlatVectorsWriter.writeSortingField
(Lucene99FlatVectorsWriter.FieldWriter<?> fieldData, int maxDoc, Sorter.DocMap sortMap) private void
Lucene99HnswVectorsWriter.writeSortingField
(Lucene99HnswVectorsWriter.FieldWriter<?> fieldData, Sorter.DocMap sortMap) private void
Lucene99ScalarQuantizedVectorsWriter.writeSortingField
(Lucene99ScalarQuantizedVectorsWriter.FieldWriter fieldData, int maxDoc, Sorter.DocMap sortMap, ScalarQuantizer scalarQuantizer) -
Uses of Sorter.DocMap in org.apache.lucene.codecs.perfield
Methods in org.apache.lucene.codecs.perfield with parameters of type Sorter.DocMapModifier and TypeMethodDescriptionvoid
PerFieldKnnVectorsFormat.FieldsWriter.flush
(int maxDoc, Sorter.DocMap sortMap) -
Uses of Sorter.DocMap in org.apache.lucene.index
Fields in org.apache.lucene.index declared as Sorter.DocMapModifier and TypeFieldDescriptionprivate final Sorter.DocMap
FreqProxTermsWriter.SortingTerms.docMap
(package private) final Sorter.DocMap
FreqProxTermsWriter.SortingTermsEnum.docMap
private final Sorter.DocMap
PointValuesWriter.MutableSortingPointValues.docMap
(package private) final Sorter.DocMap
SortingCodecReader.docMap
private final Sorter.DocMap
SortingCodecReader.SortingBits.docMap
The field for thedocMap
record component.private final Sorter.DocMap
SortingCodecReader.SortingIntersectVisitor.docMap
private final Sorter.DocMap
SortingCodecReader.SortingPointTree.docMap
private final Sorter.DocMap
SortingCodecReader.SortingPointValues.docMap
(package private) final Sorter.DocMap
DocumentsWriterPerThread.FlushedSegment.sortMap
(package private) Sorter.DocMap
ReadersAndUpdates.sortMap
Methods in org.apache.lucene.index that return Sorter.DocMapModifier and TypeMethodDescriptionSortingCodecReader.SortingBits.docMap()
Returns the value of thedocMap
record component.(package private) Sorter.DocMap
IndexingChain.flush
(SegmentWriteState state) private Sorter.DocMap
IndexingChain.maybeSortSegment
(SegmentWriteState state) MergePolicy.OneMerge.reorder
(CodecReader reader, Directory dir, Executor executor) Extend this method if you wish to renumber doc IDs.private static Sorter.DocMap
Sorter.sort
(int maxDoc, IndexSorter.DocComparator comparator) Computes the old-to-new permutation over the given comparator.(package private) Sorter.DocMap
Sorter.sort
(int maxDoc, IndexSorter.DocComparator[] comparators) (package private) Sorter.DocMap
Sorter.sort
(LeafReader reader) Returns a mapping from the old document ID to its new location in the sorted index.Methods in org.apache.lucene.index with parameters of type Sorter.DocMapModifier and TypeMethodDescriptionvoid
BinaryDocValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) abstract void
DocValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer consumer) void
FreqProxTermsWriter.flush
(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) void
NormValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, NormsConsumer normsConsumer) void
NumericDocValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) void
PointValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer) void
SortedDocValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) void
SortedNumericDocValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) void
SortedSetDocValuesWriter.flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) void
SortingStoredFieldsConsumer.flush
(SegmentWriteState state, Sorter.DocMap sortMap) (package private) void
SortingTermVectorsConsumer.flush
(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) (package private) void
StoredFieldsConsumer.flush
(SegmentWriteState state, Sorter.DocMap sortMap) (package private) void
TermsHash.flush
(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) (package private) void
TermVectorsConsumer.flush
(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) (package private) void
VectorValuesConsumer.flush
(SegmentWriteState state, Sorter.DocMap sortMap) (package private) static DocValuesProducer
NumericDocValuesWriter.getDocValuesProducer
(FieldInfo writerFieldInfo, PackedLongValues values, DocsWithFieldSet docsWithField, Sorter.DocMap sortMap) (package private) static DocValuesProducer
SortedDocValuesWriter.getDocValuesProducer
(FieldInfo writerFieldInfo, BytesRefHash hash, PackedLongValues ords, int[] sortedValues, int[] ordMap, DocsWithFieldSet docsWithField, Sorter.DocMap sortMap) (package private) static boolean
Sorter.isConsistent
(Sorter.DocMap docMap) Check consistency of aSorter.DocMap
, useful for assertions.SortingCodecReader.iteratorSupplier
(KnnVectorValues values, Sorter.DocMap docMap) Creates a factory for SortingValuesIterator.private void
IndexWriter.publishFlushedSegment
(SegmentCommitInfo newSegment, FieldInfos fieldInfos, FrozenBufferedUpdates packet, FrozenBufferedUpdates globalPacket, Sorter.DocMap sortMap) Atomically adds the segment private delete packet and publishes the flushed segments SegmentInfo to the index writer.(package private) void
FreqProxTermsWriter.SortingDocsEnum.reset
(Sorter.DocMap docMap, PostingsEnum in) (package private) void
FreqProxTermsWriter.SortingPostingsEnum.reset
(Sorter.DocMap docMap, PostingsEnum in, boolean storePositions, boolean storeOffsets) (package private) void
DocumentsWriterPerThread.sealFlushedSegment
(DocumentsWriterPerThread.FlushedSegment flushedSegment, Sorter.DocMap sortMap, DocumentsWriter.FlushNotifications flushNotifications) Seals theSegmentInfo
for the new flushed segment and persists the deleted documentsFixedBitSet
.(package private) static NumericDocValuesWriter.NumericDVs
NumericDocValuesWriter.sortDocValues
(int maxDoc, Sorter.DocMap sortMap, NumericDocValues oldDocValues, boolean dense) private static int[]
SortedDocValuesWriter.sortDocValues
(int maxDoc, Sorter.DocMap sortMap, SortedDocValues oldValues) private FixedBitSet
DocumentsWriterPerThread.sortLiveDocs
(Bits liveDocs, Sorter.DocMap sortMap) static CodecReader
SortingCodecReader.wrap
(CodecReader reader, Sorter.DocMap docMap, Sort sort) Expert: same asSortingCodecReader.wrap(org.apache.lucene.index.CodecReader, Sort)
but operates directly on aSorter.DocMap
.private void
IndexingChain.writeDocValues
(SegmentWriteState state, Sorter.DocMap sortMap) Writes all buffered doc values (called fromIndexingChain.flush(org.apache.lucene.index.SegmentWriteState)
).private void
IndexingChain.writeNorms
(SegmentWriteState state, Sorter.DocMap sortMap) private void
IndexingChain.writePoints
(SegmentWriteState state, Sorter.DocMap sortMap) Writes all buffered points.Constructors in org.apache.lucene.index with parameters of type Sorter.DocMapModifierConstructorDescription(package private)
BinaryDVs
(int maxDoc, Sorter.DocMap sortMap, BinaryDocValues oldValues) (package private)
DocOrds
(int maxDoc, Sorter.DocMap sortMap, SortedSetDocValues oldValues, float acceptableOverheadRatio, int bitsPerValue) private
FlushedSegment
(InfoStream infoStream, SegmentCommitInfo segmentInfo, FieldInfos fieldInfos, BufferedUpdates segmentUpdates, FixedBitSet liveDocs, int delCount, Sorter.DocMap sortMap) (package private)
LongValues
(int maxDoc, Sorter.DocMap sortMap, SortedNumericDocValues oldValues, float acceptableOverheadRatio) MutableSortingPointValues
(MutablePointTree in, Sorter.DocMap docMap) private
SortingBits
(Bits in, Sorter.DocMap docMap) Creates an instance of aSortingBits
record class.(package private)
SortingByteVectorValues
(ByteVectorValues delegate, Sorter.DocMap sortMap) private
SortingCodecReader
(CodecReader in, Sorter.DocMap docMap, LeafMetaData metaData) (package private)
SortingFloatVectorValues
(FloatVectorValues delegate, Sorter.DocMap sortMap) (package private)
SortingIntersectVisitor
(Sorter.DocMap docMap) (package private)
SortingPointTree
(PointValues.PointTree indexTree, Sorter.DocMap docMap) (package private)
SortingPointValues
(PointValues in, Sorter.DocMap docMap) (package private)
SortingTerms
(Terms in, IndexOptions indexOptions, Sorter.DocMap docMap) (package private)
SortingTermsEnum
(TermsEnum in, Sorter.DocMap docMap, IndexOptions indexOptions) -
Uses of Sorter.DocMap in org.apache.lucene.misc.index
Methods in org.apache.lucene.misc.index that return Sorter.DocMapModifier and TypeMethodDescriptionBPIndexReorderer.computeDocMap
(CodecReader reader, Directory tempDir, Executor executor) Expert: Compute theSorter.DocMap
that holds the new doc ID numbering.