Uses of Class
org.apache.lucene.index.SegmentWriteState
-
Packages that use SegmentWriteState Package Description org.apache.lucene.backward_codecs.lucene50 Lucene 5.0 file format.org.apache.lucene.backward_codecs.lucene60 Lucene 6.0 file format.org.apache.lucene.backward_codecs.lucene70 Components from the Lucene 7.0 index format.org.apache.lucene.backward_codecs.lucene80 Components from the Lucene 8.0 index format.org.apache.lucene.backward_codecs.lucene84 Lucene 8.4 file format.org.apache.lucene.backward_codecs.lucene86 Lucene 8.6 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.blockterms Pluggable term index / block terms dictionary implementations.org.apache.lucene.codecs.blocktreeords Same postings format as Lucene50, except the terms dictionary also supports ords, i.e.org.apache.lucene.codecs.bloom Codec PostingsFormat for fast access to low-frequency terms such as primary key fields.org.apache.lucene.codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.codecs.lucene90.blocktree BlockTree terms dictionary.org.apache.lucene.codecs.lucene92 Lucene 9.2 file format.org.apache.lucene.codecs.memory Term dictionary, DocValues or Postings formats that are read entirely into memory.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.codecs.uniformsplit Pluggable term index / block terms dictionary implementations.org.apache.lucene.codecs.uniformsplit.sharedterms Pluggable term index / block terms dictionary implementations.org.apache.lucene.index Code to maintain and access indices.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.search.suggest.document Support for document suggestion -
-
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene50
Methods in org.apache.lucene.backward_codecs.lucene50 with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
Lucene50PostingsFormat. fieldsConsumer(SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene60
Methods in org.apache.lucene.backward_codecs.lucene60 with parameters of type SegmentWriteState Modifier and Type Method Description PointsWriter
Lucene60PointsFormat. fieldsWriter(SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene70
Methods in org.apache.lucene.backward_codecs.lucene70 with parameters of type SegmentWriteState Modifier and Type Method Description DocValuesConsumer
Lucene70DocValuesFormat. fieldsConsumer(SegmentWriteState state)
NormsConsumer
Lucene70NormsFormat. normsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.backward_codecs.lucene70 with parameters of type SegmentWriteState Constructor Description Lucene70DocValuesConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension)
expert: Creates a new writer -
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene80
Fields in org.apache.lucene.backward_codecs.lucene80 declared as SegmentWriteState Modifier and Type Field Description private SegmentWriteState
Lucene80DocValuesConsumer. state
Methods in org.apache.lucene.backward_codecs.lucene80 with parameters of type SegmentWriteState Modifier and Type Method Description DocValuesConsumer
Lucene80DocValuesFormat. fieldsConsumer(SegmentWriteState state)
Note: although this format is only used on older versions, we need to keep the write logic in addition to the read logic.NormsConsumer
Lucene80NormsFormat. normsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.backward_codecs.lucene80 with parameters of type SegmentWriteState Constructor Description Lucene80DocValuesConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension, Lucene80DocValuesFormat.Mode mode)
expert: Creates a new writer -
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene84
Methods in org.apache.lucene.backward_codecs.lucene84 with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
Lucene84PostingsFormat. fieldsConsumer(SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene86
Methods in org.apache.lucene.backward_codecs.lucene86 with parameters of type SegmentWriteState Modifier and Type Method Description PointsWriter
Lucene86PointsFormat. fieldsWriter(SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene90
Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type SegmentWriteState Modifier and Type Method Description KnnVectorsWriter
Lucene90HnswVectorsFormat. fieldsWriter(SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.backward_codecs.lucene91
Methods in org.apache.lucene.backward_codecs.lucene91 with parameters of type SegmentWriteState Modifier and Type Method Description KnnVectorsWriter
Lucene91HnswVectorsFormat. fieldsWriter(SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type SegmentWriteState Modifier and Type Method Description abstract DocValuesConsumer
DocValuesFormat. fieldsConsumer(SegmentWriteState state)
Returns aDocValuesConsumer
to write docvalues to the index.abstract FieldsConsumer
PostingsFormat. fieldsConsumer(SegmentWriteState state)
Writes a new segmentabstract KnnVectorsWriter
KnnVectorsFormat. fieldsWriter(SegmentWriteState state)
Returns aKnnVectorsWriter
to write the vectors to the index.abstract PointsWriter
PointsFormat. fieldsWriter(SegmentWriteState state)
Writes a new segmentabstract void
PostingsWriterBase. init(IndexOutput termsOut, SegmentWriteState state)
Called once after startup, before any terms have been added.abstract NormsConsumer
NormsFormat. normsConsumer(SegmentWriteState state)
Returns aNormsConsumer
to write norms to the index. -
Uses of SegmentWriteState in org.apache.lucene.codecs.blockterms
Constructors in org.apache.lucene.codecs.blockterms with parameters of type SegmentWriteState Constructor Description BlockTermsWriter(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter)
FixedGapTermsIndexWriter(SegmentWriteState state)
FixedGapTermsIndexWriter(SegmentWriteState state, int termIndexInterval)
VariableGapTermsIndexWriter(SegmentWriteState state, VariableGapTermsIndexWriter.IndexTermSelector policy)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.blocktreeords
Methods in org.apache.lucene.codecs.blocktreeords with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
BlockTreeOrdsPostingsFormat. fieldsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.blocktreeords with parameters of type SegmentWriteState Constructor Description OrdsBlockTreeTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter, int minItemsInBlock, int maxItemsInBlock)
Create a new writer. -
Uses of SegmentWriteState in org.apache.lucene.codecs.bloom
Fields in org.apache.lucene.codecs.bloom declared as SegmentWriteState Modifier and Type Field Description private SegmentWriteState
BloomFilteringPostingsFormat.BloomFilteredFieldsConsumer. state
Methods in org.apache.lucene.codecs.bloom with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
BloomFilteringPostingsFormat. fieldsConsumer(SegmentWriteState state)
abstract FuzzySet
BloomFilterFactory. getSetForField(SegmentWriteState state, FieldInfo info)
FuzzySet
DefaultBloomFilterFactory. getSetForField(SegmentWriteState state, FieldInfo info)
Constructors in org.apache.lucene.codecs.bloom with parameters of type SegmentWriteState Constructor Description BloomFilteredFieldsConsumer(FieldsConsumer fieldsConsumer, SegmentWriteState state)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.lucene90
Fields in org.apache.lucene.codecs.lucene90 declared as SegmentWriteState Modifier and Type Field Description (package private) SegmentWriteState
Lucene90PointsWriter. writeState
Methods in org.apache.lucene.codecs.lucene90 with parameters of type SegmentWriteState Modifier and Type Method Description DocValuesConsumer
Lucene90DocValuesFormat. fieldsConsumer(SegmentWriteState state)
FieldsConsumer
Lucene90PostingsFormat. fieldsConsumer(SegmentWriteState state)
PointsWriter
Lucene90PointsFormat. fieldsWriter(SegmentWriteState state)
void
Lucene90PostingsWriter. init(IndexOutput termsOut, SegmentWriteState state)
NormsConsumer
Lucene90NormsFormat. normsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.lucene90 with parameters of type SegmentWriteState Constructor Description Lucene90DocValuesConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension)
expert: Creates a new writerLucene90NormsConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension)
Lucene90PointsWriter(SegmentWriteState writeState)
Uses the defaults values formaxPointsInLeafNode
(1024) andmaxMBSortInHeap
(16.0)Lucene90PointsWriter(SegmentWriteState writeState, int maxPointsInLeafNode, double maxMBSortInHeap)
Full constructorLucene90PostingsWriter(SegmentWriteState state)
Creates a postings writer -
Uses of SegmentWriteState in org.apache.lucene.codecs.lucene90.blocktree
Constructors in org.apache.lucene.codecs.lucene90.blocktree with parameters of type SegmentWriteState Constructor Description Lucene90BlockTreeTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter, int minItemsInBlock, int maxItemsInBlock)
Create a new writer. -
Uses of SegmentWriteState in org.apache.lucene.codecs.lucene92
Fields in org.apache.lucene.codecs.lucene92 declared as SegmentWriteState Modifier and Type Field Description private SegmentWriteState
Lucene92HnswVectorsWriter. segmentWriteState
Methods in org.apache.lucene.codecs.lucene92 with parameters of type SegmentWriteState Modifier and Type Method Description KnnVectorsWriter
Lucene92HnswVectorsFormat. fieldsWriter(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.lucene92 with parameters of type SegmentWriteState Constructor Description Lucene92HnswVectorsWriter(SegmentWriteState state, int M, int beamWidth)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.memory
Methods in org.apache.lucene.codecs.memory with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
DirectPostingsFormat. fieldsConsumer(SegmentWriteState state)
FieldsConsumer
FSTPostingsFormat. fieldsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.memory with parameters of type SegmentWriteState Constructor Description FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.perfield
Fields in org.apache.lucene.codecs.perfield declared as SegmentWriteState Modifier and Type Field Description private SegmentWriteState
PerFieldDocValuesFormat.FieldsWriter. segmentWriteState
private SegmentWriteState
PerFieldKnnVectorsFormat.FieldsWriter. segmentWriteState
(package private) SegmentWriteState
PerFieldPostingsFormat.FieldsGroup.Builder. state
(package private) SegmentWriteState
PerFieldPostingsFormat.FieldsGroup. state
Custom SegmentWriteState for this group of fields, with the segmentSuffix uniqueified for this PostingsFormat(package private) SegmentWriteState
PerFieldPostingsFormat.FieldsWriter. writeState
Methods in org.apache.lucene.codecs.perfield with parameters of type SegmentWriteState Modifier and Type Method Description DocValuesConsumer
PerFieldDocValuesFormat. fieldsConsumer(SegmentWriteState state)
FieldsConsumer
PerFieldPostingsFormat. fieldsConsumer(SegmentWriteState state)
KnnVectorsWriter
PerFieldKnnVectorsFormat. fieldsWriter(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.perfield with parameters of type SegmentWriteState Constructor Description Builder(int suffix, SegmentWriteState state)
FieldsGroup(java.util.List<java.lang.String> fields, int suffix, SegmentWriteState state)
FieldsWriter(SegmentWriteState state)
FieldsWriter(SegmentWriteState segmentWriteState)
FieldsWriter(SegmentWriteState writeState)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.simpletext
Fields in org.apache.lucene.codecs.simpletext declared as SegmentWriteState Modifier and Type Field Description private SegmentWriteState
SimpleTextFieldsWriter. writeState
(package private) SegmentWriteState
SimpleTextPointsWriter. writeState
Methods in org.apache.lucene.codecs.simpletext with parameters of type SegmentWriteState Modifier and Type Method Description DocValuesConsumer
SimpleTextDocValuesFormat. fieldsConsumer(SegmentWriteState state)
FieldsConsumer
SimpleTextPostingsFormat. fieldsConsumer(SegmentWriteState state)
KnnVectorsWriter
SimpleTextKnnVectorsFormat. fieldsWriter(SegmentWriteState state)
PointsWriter
SimpleTextPointsFormat. fieldsWriter(SegmentWriteState state)
NormsConsumer
SimpleTextNormsFormat. normsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.simpletext with parameters of type SegmentWriteState Constructor Description SimpleTextDocValuesWriter(SegmentWriteState state, java.lang.String ext)
SimpleTextFieldsWriter(SegmentWriteState writeState)
SimpleTextKnnVectorsWriter(SegmentWriteState state)
SimpleTextNormsConsumer(SegmentWriteState state)
SimpleTextPointsWriter(SegmentWriteState writeState)
SimpleTextSkipWriter(SegmentWriteState writeState)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.uniformsplit
Methods in org.apache.lucene.codecs.uniformsplit with parameters of type SegmentWriteState Modifier and Type Method Description protected FieldsConsumer
UniformSplitPostingsFormat. createUniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder)
FieldsConsumer
UniformSplitPostingsFormat. fieldsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.codecs.uniformsplit with parameters of type SegmentWriteState Constructor Description UniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder)
UniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder, FieldMetadata.Serializer fieldMetadataWriter, java.lang.String codecName, int versionCurrent, java.lang.String termsBlocksExtension, java.lang.String dictionaryExtension)
UniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, BlockEncoder blockEncoder)
-
Uses of SegmentWriteState in org.apache.lucene.codecs.uniformsplit.sharedterms
Methods in org.apache.lucene.codecs.uniformsplit.sharedterms with parameters of type SegmentWriteState Modifier and Type Method Description protected FieldsConsumer
STUniformSplitPostingsFormat. createUniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder)
Constructors in org.apache.lucene.codecs.uniformsplit.sharedterms with parameters of type SegmentWriteState Constructor Description STUniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder)
STUniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder, FieldMetadata.Serializer fieldMetadataWriter, java.lang.String codecName, int versionCurrent, java.lang.String termsBlocksExtension, java.lang.String dictionaryExtension)
STUniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, BlockEncoder blockEncoder)
-
Uses of SegmentWriteState in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type SegmentWriteState Modifier and Type Method Description private void
FreqProxTermsWriter. applyDeletes(SegmentWriteState state, Fields fields)
void
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(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms)
(package private) Sorter.DocMap
IndexingChain. flush(SegmentWriteState state)
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(java.util.Map<java.lang.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(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms)
(package private) void
TermVectorsConsumer. flush(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms)
private Sorter.DocMap
IndexingChain. maybeSortSegment(SegmentWriteState state)
void
SegmentMerger.VoidMerger. merge(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergeDocValues(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergeFieldInfos(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergeNorms(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergePoints(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergeTerms(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergeVectorValues(SegmentWriteState segmentWriteState, SegmentReadState segmentReadState)
private void
SegmentMerger. mergeWithLogging(SegmentMerger.VoidMerger merger, SegmentWriteState segmentWriteState, SegmentReadState segmentReadState, java.lang.String formatName, int numMerged)
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.private void
IndexingChain. writeVectors(SegmentWriteState state, Sorter.DocMap sortMap)
Writes all buffered vectors.Constructors in org.apache.lucene.index with parameters of type SegmentWriteState Constructor Description SegmentWriteState(SegmentWriteState state, java.lang.String segmentSuffix)
Create a shallow copy ofSegmentWriteState
with a new segment suffix. -
Uses of SegmentWriteState in org.apache.lucene.sandbox.codecs.idversion
Methods in org.apache.lucene.sandbox.codecs.idversion with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
IDVersionPostingsFormat. fieldsConsumer(SegmentWriteState state)
void
IDVersionPostingsWriter. init(IndexOutput termsOut, SegmentWriteState state)
Constructors in org.apache.lucene.sandbox.codecs.idversion with parameters of type SegmentWriteState Constructor Description VersionBlockTreeTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter, int minItemsInBlock, int maxItemsInBlock)
Create a new writer. -
Uses of SegmentWriteState in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as SegmentWriteState Modifier and Type Field Description private SegmentWriteState
CompletionFieldsConsumer. state
Methods in org.apache.lucene.search.suggest.document with parameters of type SegmentWriteState Modifier and Type Method Description FieldsConsumer
CompletionPostingsFormat. fieldsConsumer(SegmentWriteState state)
Constructors in org.apache.lucene.search.suggest.document with parameters of type SegmentWriteState Constructor Description CompletionFieldsConsumer(java.lang.String codecName, PostingsFormat delegatePostingsFormat, SegmentWriteState state)
-