C# Class Lucene.Net.Codecs.BlockTerms.BlockTermsReader.FieldReader.SegmentTermsEnum

Inheritance: TermsEnum
Show file Open project: apache/lucenenet

Public Methods

Method Description
DocFreq ( ) : int
Docs ( Bits liveDocs, DocsEnum reuse, int flags ) : DocsEnum
DocsAndPositions ( Bits liveDocs, DocsAndPositionsEnum reuse, int flags ) : DocsAndPositionsEnum
Next ( ) : BytesRef
Ord ( ) : long
SeekCeil ( BytesRef target ) : SeekStatus TODO: we may want an alternate mode here which is "if you are about to return NOT_FOUND I won't use the terms data from that"; eg FuzzyTermsEnum will (usually) just immediately call seek again if we return NOT_FOUND so it's a waste for us to fill in the term that was actually NOT_FOUND
SeekExact ( BytesRef target, TermState otherState ) : void
SeekExact ( long ord ) : void
SegmentTermsEnum ( FieldReader fieldReader, BlockTermsReader blockTermsReader ) : System
Term ( ) : BytesRef
TermState ( ) : TermState
TotalTermFreq ( ) : long

Private Methods

Method Description
DecodeMetaData ( ) : void
NextBlock ( ) : bool
_next ( ) : BytesRef

Decodes only the term bytes of the next term. If caller then asks for metadata, ie docFreq, totalTermFreq or pulls a D/P Enum, we then (lazily) decode all metadata up to the current term

Method Details

DocFreq() public method

public DocFreq ( ) : int
return int

Docs() public method

public Docs ( Bits liveDocs, DocsEnum reuse, int flags ) : DocsEnum
liveDocs Bits
reuse DocsEnum
flags int
return DocsEnum

DocsAndPositions() public method

public DocsAndPositions ( Bits liveDocs, DocsAndPositionsEnum reuse, int flags ) : DocsAndPositionsEnum
liveDocs Bits
reuse DocsAndPositionsEnum
flags int
return DocsAndPositionsEnum

Next() public method

public Next ( ) : BytesRef
return BytesRef

Ord() public method

public Ord ( ) : long
return long

SeekCeil() public method

TODO: we may want an alternate mode here which is "if you are about to return NOT_FOUND I won't use the terms data from that"; eg FuzzyTermsEnum will (usually) just immediately call seek again if we return NOT_FOUND so it's a waste for us to fill in the term that was actually NOT_FOUND
public SeekCeil ( BytesRef target ) : SeekStatus
target BytesRef
return SeekStatus

SeekExact() public method

public SeekExact ( BytesRef target, TermState otherState ) : void
target BytesRef
otherState TermState
return void

SeekExact() public method

public SeekExact ( long ord ) : void
ord long
return void

SegmentTermsEnum() public method

public SegmentTermsEnum ( FieldReader fieldReader, BlockTermsReader blockTermsReader ) : System
fieldReader FieldReader
blockTermsReader BlockTermsReader
return System

Term() public method

public Term ( ) : BytesRef
return BytesRef

TermState() public method

public TermState ( ) : TermState
return TermState

TotalTermFreq() public method

public TotalTermFreq ( ) : long
return long