Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.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.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene80 for an overview
of the index format. |
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene70 |
Components from the Lucene 7.0 index format.
|
org.apache.lucene.codecs.lucene80 |
Lucene 8.0 file format.
|
org.apache.lucene.codecs.perfield |
Postings format that can delegate to different formats per-field.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method and Description |
---|---|
abstract DocValuesConsumer |
DocValuesFormat.fieldsConsumer(SegmentWriteState state)
Returns a
DocValuesConsumer to write docvalues to the
index. |
abstract FieldsConsumer |
PostingsFormat.fieldsConsumer(SegmentWriteState state)
Writes a new segment
|
abstract PointsWriter |
PointsFormat.fieldsWriter(SegmentWriteState state)
Writes a new segment
|
abstract void |
PostingsWriterBase.init(IndexOutput termsOut,
SegmentWriteState state)
Called once after startup, before any terms have been
added.
|
abstract NormsConsumer |
NormsFormat.normsConsumer(SegmentWriteState state)
Returns a
NormsConsumer to write norms to the
index. |
Constructor and Description |
---|
BlockTreeTermsWriter(SegmentWriteState state,
PostingsWriterBase postingsWriter,
int minItemsInBlock,
int maxItemsInBlock)
Create a new writer.
|
Modifier and Type | Method and Description |
---|---|
FieldsConsumer |
IDVersionPostingsFormat.fieldsConsumer(SegmentWriteState state) |
void |
IDVersionPostingsWriter.init(IndexOutput termsOut,
SegmentWriteState state) |
Constructor and Description |
---|
VersionBlockTreeTermsWriter(SegmentWriteState state,
PostingsWriterBase postingsWriter,
int minItemsInBlock,
int maxItemsInBlock)
Create a new writer.
|
Modifier and Type | Method and Description |
---|---|
FieldsConsumer |
Lucene50PostingsFormat.fieldsConsumer(SegmentWriteState state) |
void |
Lucene50PostingsWriter.init(IndexOutput termsOut,
SegmentWriteState state) |
Constructor and Description |
---|
Lucene50PostingsWriter(SegmentWriteState state)
Creates a postings writer
|
Modifier and Type | Field and Description |
---|---|
(package private) SegmentWriteState |
Lucene60PointsWriter.writeState |
Modifier and Type | Method and Description |
---|---|
PointsWriter |
Lucene60PointsFormat.fieldsWriter(SegmentWriteState state) |
Constructor and Description |
---|
Lucene60PointsWriter(SegmentWriteState writeState)
Uses the defaults values for
maxPointsInLeafNode (1024) and maxMBSortInHeap (16.0) |
Lucene60PointsWriter(SegmentWriteState writeState,
int maxPointsInLeafNode,
double maxMBSortInHeap)
Full constructor
|
Modifier and Type | Method and Description |
---|---|
DocValuesConsumer |
Lucene70DocValuesFormat.fieldsConsumer(SegmentWriteState state) |
NormsConsumer |
Lucene70NormsFormat.normsConsumer(SegmentWriteState state) |
Constructor and 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
|
Lucene70NormsConsumer(SegmentWriteState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension) |
Modifier and Type | Method and Description |
---|---|
DocValuesConsumer |
Lucene80DocValuesFormat.fieldsConsumer(SegmentWriteState state) |
NormsConsumer |
Lucene80NormsFormat.normsConsumer(SegmentWriteState state) |
Constructor and Description |
---|
Lucene80DocValuesConsumer(SegmentWriteState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension)
expert: Creates a new writer
|
Lucene80NormsConsumer(SegmentWriteState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension) |
Modifier and Type | Field and Description |
---|---|
private SegmentWriteState |
PerFieldDocValuesFormat.FieldsWriter.segmentWriteState |
(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 |
Modifier and Type | Method and Description |
---|---|
FieldsConsumer |
PerFieldPostingsFormat.fieldsConsumer(SegmentWriteState state) |
DocValuesConsumer |
PerFieldDocValuesFormat.fieldsConsumer(SegmentWriteState state) |
Constructor and Description |
---|
FieldsWriter(SegmentWriteState writeState) |
FieldsWriter(SegmentWriteState state) |
Modifier and Type | Method and Description |
---|---|
private void |
FreqProxTermsWriter.applyDeletes(SegmentWriteState state,
Fields fields) |
(package private) void |
TermsHash.flush(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush,
SegmentWriteState state,
Sorter.DocMap sortMap,
NormsProducer norms) |
void |
FreqProxTermsWriter.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) |
(package private) void |
SortingTermVectorsConsumer.flush(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush,
SegmentWriteState state,
Sorter.DocMap sortMap,
NormsProducer norms) |
Sorter.DocMap |
DefaultIndexingChain.flush(SegmentWriteState state) |
(package private) abstract Sorter.DocMap |
DocConsumer.flush(SegmentWriteState state) |
(package private) void |
SortingStoredFieldsConsumer.flush(SegmentWriteState state,
Sorter.DocMap sortMap) |
(package private) void |
StoredFieldsConsumer.flush(SegmentWriteState state,
Sorter.DocMap sortMap) |
void |
SortedNumericDocValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
void |
NumericDocValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
void |
SortedDocValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
void |
SortedSetDocValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
(package private) abstract void |
DocValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer consumer) |
void |
BinaryDocValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
void |
NormValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
NormsConsumer normsConsumer) |
void |
PointValuesWriter.flush(SegmentWriteState state,
Sorter.DocMap sortMap,
PointsWriter writer) |
private Sorter.DocMap |
DefaultIndexingChain.maybeSortSegment(SegmentWriteState state) |
private void |
SegmentMerger.mergeDocValues(SegmentWriteState segmentWriteState) |
private void |
SegmentMerger.mergeNorms(SegmentWriteState segmentWriteState) |
private void |
SegmentMerger.mergePoints(SegmentWriteState segmentWriteState) |
private void |
SegmentMerger.mergeTerms(SegmentWriteState segmentWriteState,
NormsProducer norms) |
private void |
DefaultIndexingChain.writeDocValues(SegmentWriteState state,
Sorter.DocMap sortMap)
Writes all buffered doc values (called from
DefaultIndexingChain.flush(org.apache.lucene.index.SegmentWriteState) ). |
private void |
DefaultIndexingChain.writeNorms(SegmentWriteState state,
Sorter.DocMap sortMap) |
private void |
DefaultIndexingChain.writePoints(SegmentWriteState state,
Sorter.DocMap sortMap)
Writes all buffered points.
|
Constructor and Description |
---|
SegmentWriteState(SegmentWriteState state,
java.lang.String segmentSuffix)
Create a shallow copy of
SegmentWriteState with a new segment suffix. |