Class Lucene101PostingsFormat.IntBlockTermState
java.lang.Object
org.apache.lucene.index.TermState
org.apache.lucene.index.OrdTermState
org.apache.lucene.codecs.BlockTermState
org.apache.lucene.codecs.lucene101.Lucene101PostingsFormat.IntBlockTermState
- All Implemented Interfaces:
Cloneable
- Enclosing class:
Lucene101PostingsFormat
Holds all state required for
Lucene101PostingsReader to produce a PostingsEnum without re-seeking the terms dict.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongfile pointer to the start of the doc ids enumeration, inLucene101PostingsFormat.DOC_EXTENSIONfilelongfile offset for the last position in the last block, if there are more thanForUtil.BLOCK_SIZEpositions; otherwise -1longfile pointer to the start of the payloads enumeration, inLucene101PostingsFormat.PAY_EXTENSIONfilelongfile pointer to the start of the positions enumeration, inLucene101PostingsFormat.POS_EXTENSIONfileintdocid when there is a single pulsed posting, otherwise -1.Fields inherited from class org.apache.lucene.codecs.BlockTermState
blockFilePointer, docFreq, termBlockOrd, totalTermFreqFields inherited from class org.apache.lucene.index.OrdTermState
ord -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
docStartFP
public long docStartFPfile pointer to the start of the doc ids enumeration, inLucene101PostingsFormat.DOC_EXTENSIONfile -
posStartFP
public long posStartFPfile pointer to the start of the positions enumeration, inLucene101PostingsFormat.POS_EXTENSIONfile -
payStartFP
public long payStartFPfile pointer to the start of the payloads enumeration, inLucene101PostingsFormat.PAY_EXTENSIONfile -
lastPosBlockOffset
public long lastPosBlockOffsetfile offset for the last position in the last block, if there are more thanForUtil.BLOCK_SIZEpositions; otherwise -1One might think to use total term frequency to track how many positions are left to read as we decode the blocks, and decode the last block differently when num_left_positions < BLOCK_SIZE. Unfortunately this won't work since the tracking will be messed up when we skip blocks as the skipper will only tell us new position offset (start of block) and number of positions to skip for that block, without telling us how many positions it has skipped.
-
singletonDocID
public int singletonDocIDdocid when there is a single pulsed posting, otherwise -1. freq is always implicitly totalTermFreq in this case.
-
-
Constructor Details
-
IntBlockTermState
public IntBlockTermState()Sole constructor.
-
-
Method Details
-
clone
-
copyFrom
Description copied from class:TermStateCopies the content of the givenTermStateto this instance- Overrides:
copyFromin classBlockTermState- Parameters:
_other- the TermState to copy
-
toString
- Overrides:
toStringin classBlockTermState
-