Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
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.lucene84 |
Lucene 8.4 file format.
|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract BlockTermState |
PushPostingsWriterBase.newTermState()
Return a newly created empty TermState
|
abstract BlockTermState |
PostingsReaderBase.newTermState()
Return a newly created empty TermState
|
BlockTermState |
PushPostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen,
NormsProducer norms) |
abstract BlockTermState |
PostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen,
NormsProducer norms)
Write all postings for one term; use the provided
TermsEnum to pull a PostingsEnum . |
Modifier and Type | Method and Description |
---|---|
abstract void |
PostingsReaderBase.decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
Actually decode metadata for next term
|
abstract void |
PostingsWriterBase.encodeTerm(long[] longs,
DataOutput out,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
Encode metadata as long[] and byte[].
|
abstract void |
PushPostingsWriterBase.finishTerm(BlockTermState state)
Finishes the current term.
|
abstract ImpactsEnum |
PostingsReaderBase.impacts(FieldInfo fieldInfo,
BlockTermState state,
int flags)
Return a
ImpactsEnum that computes impacts with scorer . |
abstract PostingsEnum |
PostingsReaderBase.postings(FieldInfo fieldInfo,
BlockTermState state,
PostingsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
Modifier and Type | Class and Description |
---|---|
static class |
Lucene50PostingsFormat.IntBlockTermState
Holds all state required for
Lucene50PostingsReader to produce a
PostingsEnum without re-seeking the terms dict. |
Modifier and Type | Method and Description |
---|---|
BlockTermState |
Lucene50PostingsReader.newTermState() |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsReader.decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute) |
ImpactsEnum |
Lucene50PostingsReader.impacts(FieldInfo fieldInfo,
BlockTermState state,
int flags) |
PostingsEnum |
Lucene50PostingsReader.postings(FieldInfo fieldInfo,
BlockTermState termState,
PostingsEnum reuse,
int flags) |
Modifier and Type | Class and Description |
---|---|
static class |
Lucene84PostingsFormat.IntBlockTermState
Holds all state required for
Lucene84PostingsReader to produce a
PostingsEnum without re-seeking the terms dict. |
Modifier and Type | Method and Description |
---|---|
BlockTermState |
Lucene84PostingsReader.newTermState() |
Modifier and Type | Method and Description |
---|---|
void |
Lucene84PostingsReader.decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute) |
void |
Lucene84PostingsWriter.encodeTerm(long[] longs,
DataOutput out,
FieldInfo fieldInfo,
BlockTermState _state,
boolean absolute) |
void |
Lucene84PostingsWriter.finishTerm(BlockTermState _state)
Called when we are done adding docs to this term
|
ImpactsEnum |
Lucene84PostingsReader.impacts(FieldInfo fieldInfo,
BlockTermState state,
int flags) |
PostingsEnum |
Lucene84PostingsReader.postings(FieldInfo fieldInfo,
BlockTermState termState,
PostingsEnum reuse,
int flags) |
Modifier and Type | Field and Description |
---|---|
protected BlockTermState |
BlockReader.scratchTermState |
protected BlockTermState |
BlockReader.termState
Current block line details.
|
protected BlockTermState |
BlockLine.termState
Only used for writing.
|
Modifier and Type | Method and Description |
---|---|
protected BlockTermState |
BlockReader.readTermState()
Reads the
BlockTermState on the current line. |
BlockTermState |
DeltaBaseTermStateSerializer.readTermState(long baseDocStartFP,
long basePosStartFP,
long basePayStartFP,
DataInput termStatesInput,
FieldInfo fieldInfo,
BlockTermState reuse)
Reads a
BlockTermState from the provided DataInput . |
protected BlockTermState |
BlockReader.readTermStateIfNotRead()
Reads the
BlockTermState if it is not already set. |
protected BlockTermState |
UniformSplitTermsWriter.writePostingLine(TermsEnum termsEnum,
FieldMetadata fieldMetadata,
NormsProducer normsProducer)
Writes the posting values for the current term in the given
TermsEnum
and updates the FieldMetadata stats. |
Modifier and Type | Method and Description |
---|---|
protected void |
BlockWriter.addLine(BytesRef term,
BlockTermState blockTermState,
IndexDictionary.Builder dictionaryBuilder)
Adds a new
BlockLine term for the current field. |
BlockTermState |
DeltaBaseTermStateSerializer.readTermState(long baseDocStartFP,
long basePosStartFP,
long basePayStartFP,
DataInput termStatesInput,
FieldInfo fieldInfo,
BlockTermState reuse)
Reads a
BlockTermState from the provided DataInput . |
void |
FieldMetadata.updateStats(BlockTermState state)
Updates the field stats with the given
BlockTermState for the current
block line (for one term). |
void |
DeltaBaseTermStateSerializer.writeTermState(DataOutput termStatesOutput,
FieldInfo fieldInfo,
BlockTermState termState)
Writes a
BlockTermState to the provided DataOutput . |
Constructor and Description |
---|
BlockLine(TermBytes termBytes,
BlockTermState termState)
Constructor used for writing a
BlockLine . |
Modifier and Type | Field and Description |
---|---|
BlockTermState |
FieldMetadataTermState.state |
Modifier and Type | Method and Description |
---|---|
protected BlockTermState |
STIntersectBlockReader.readTermState()
Reads the
BlockTermState on the current line for the specific field
corresponding this this reader. |
protected BlockTermState |
STBlockReader.readTermState()
Reads the
BlockTermState on the current line for this reader's field. |
static BlockTermState |
STBlockLine.Serializer.readTermStateForField(int fieldId,
DataInput termStatesInput,
DeltaBaseTermStateSerializer termStateSerializer,
BlockHeader blockHeader,
FieldInfos fieldInfos,
BlockTermState reuse)
Reads a single
BlockTermState for the provided field in the current block line of the provided input. |
protected BlockTermState |
STMergingBlockReader.readTermStateIfNotRead() |
Modifier and Type | Method and Description |
---|---|
PostingsEnum |
STMergingBlockReader.postings(String fieldName,
BlockTermState termState,
PostingsEnum reuse,
int flags)
Creates a new
PostingsEnum for the provided field and BlockTermState . |
static BlockTermState |
STBlockLine.Serializer.readTermStateForField(int fieldId,
DataInput termStatesInput,
DeltaBaseTermStateSerializer termStateSerializer,
BlockHeader blockHeader,
FieldInfos fieldInfos,
BlockTermState reuse)
Reads a single
BlockTermState for the provided field in the current block line of the provided input. |
Modifier and Type | Method and Description |
---|---|
static void |
STBlockLine.Serializer.readFieldTermStatesMap(DataInput termStatesInput,
DeltaBaseTermStateSerializer termStateSerializer,
BlockHeader blockHeader,
FieldInfos fieldInfos,
Map<String,BlockTermState> fieldTermStatesMap)
Reads all the
BlockTermState of all the field in the current block line of the provided input. |
void |
STMergingBlockReader.readFieldTermStatesMap(Map<String,BlockTermState> fieldTermStatesMap)
Reads all the fields
TermState s of the current term and put them
in the provided map. |
Constructor and Description |
---|
FieldMetadataTermState(FieldMetadata fieldMetadata,
BlockTermState state) |
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.