C# Класс Lucene.Net.Index.DocTermOrds

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
DocsEnum Lucene.Net.Index.DocsEnum
Field string
Index int[]
IndexedTermsArray BytesRef[]
MaxTermDocFreq int
NumTermsInField int
OrdBase int
Phase1_time int
Prefix BytesRef
SizeOfIndexedStrings long
TermInstances long
Tnums sbyte[][]
Total_time int

Открытые методы

Метод Описание
DocTermOrds ( AtomicReader reader, Bits liveDocs, string field ) : System

Inverts all terms

DocTermOrds ( AtomicReader reader, Bits liveDocs, string field, BytesRef termPrefix ) : System

Inverts only terms starting w/ prefix

DocTermOrds ( AtomicReader reader, Bits liveDocs, string field, BytesRef termPrefix, int maxTermDocFreq ) : System

Inverts only terms starting w/ prefix, and only terms whose docFreq (not taking deletions into account) is <= maxTermDocFreq

DocTermOrds ( AtomicReader reader, Bits liveDocs, string field, BytesRef termPrefix, int maxTermDocFreq, int indexIntervalBits ) : System

Inverts only terms starting w/ prefix, and only terms whose docFreq (not taking deletions into account) is <= maxTermDocFreq, with a custom indexing interval (default is every 128nd term).

GetIterator ( AtomicReader reader ) : Lucene.Net.Index.SortedSetDocValues

Returns a SortedSetDocValues view of this instance

GetOrdTermsEnum ( AtomicReader reader ) : Lucene.Net.Index.TermsEnum

Returns a TermsEnum that implements ord. If the provided reader supports ord, we just return its TermsEnum; if it does not, we build a "private" terms index internally (WARNING: consumes RAM) and use that index to implement ord. this also enables ord on top of a composite reader. The returned TermsEnum is unpositioned. this returns null if there are no terms.

NOTE: you must pass the same reader that was used when creating this class

LookupTerm ( Lucene.Net.Index.TermsEnum termsEnum, int ord ) : BytesRef

Returns the term (BytesRef) corresponding to the provided ordinal.

NumTerms ( ) : int

Returns the number of terms in this field

RamUsedInBytes ( ) : long

Returns total bytes used.

Защищенные методы

Метод Описание
DocTermOrds ( string field, int maxTermDocFreq, int indexIntervalBits ) : System

Subclass inits w/ this, but be sure you then call uninvert, only once

SetActualDocFreq ( int termNum, int df ) : void

Invoked during #uninvert(AtomicReader,Bits,BytesRef) to record the document frequency for each uninverted term.

Uninvert ( AtomicReader reader, Bits liveDocs, BytesRef termPrefix ) : void

Call this only once (if you subclass!)

VisitTerm ( Lucene.Net.Index.TermsEnum te, int termNum ) : void

Subclass can override this

Приватные методы

Метод Описание
VIntSize ( int x ) : int

Number of bytes to represent an unsigned int as a vint.

WriteInt ( int x, sbyte arr, int pos ) : int

Описание методов

DocTermOrds() публичный Метод

Inverts all terms
public DocTermOrds ( AtomicReader reader, Bits liveDocs, string field ) : System
reader AtomicReader
liveDocs Bits
field string
Результат System

DocTermOrds() публичный Метод

Inverts only terms starting w/ prefix
public DocTermOrds ( AtomicReader reader, Bits liveDocs, string field, BytesRef termPrefix ) : System
reader AtomicReader
liveDocs Bits
field string
termPrefix BytesRef
Результат System

DocTermOrds() публичный Метод

Inverts only terms starting w/ prefix, and only terms whose docFreq (not taking deletions into account) is <= maxTermDocFreq
public DocTermOrds ( AtomicReader reader, Bits liveDocs, string field, BytesRef termPrefix, int maxTermDocFreq ) : System
reader AtomicReader
liveDocs Bits
field string
termPrefix BytesRef
maxTermDocFreq int
Результат System

DocTermOrds() публичный Метод

Inverts only terms starting w/ prefix, and only terms whose docFreq (not taking deletions into account) is <= maxTermDocFreq, with a custom indexing interval (default is every 128nd term).
public DocTermOrds ( AtomicReader reader, Bits liveDocs, string field, BytesRef termPrefix, int maxTermDocFreq, int indexIntervalBits ) : System
reader AtomicReader
liveDocs Bits
field string
termPrefix BytesRef
maxTermDocFreq int
indexIntervalBits int
Результат System

DocTermOrds() защищенный Метод

Subclass inits w/ this, but be sure you then call uninvert, only once
protected DocTermOrds ( string field, int maxTermDocFreq, int indexIntervalBits ) : System
field string
maxTermDocFreq int
indexIntervalBits int
Результат System

GetIterator() публичный Метод

Returns a SortedSetDocValues view of this instance
public GetIterator ( AtomicReader reader ) : Lucene.Net.Index.SortedSetDocValues
reader AtomicReader
Результат Lucene.Net.Index.SortedSetDocValues

GetOrdTermsEnum() публичный Метод

Returns a TermsEnum that implements ord. If the provided reader supports ord, we just return its TermsEnum; if it does not, we build a "private" terms index internally (WARNING: consumes RAM) and use that index to implement ord. this also enables ord on top of a composite reader. The returned TermsEnum is unpositioned. this returns null if there are no terms.

NOTE: you must pass the same reader that was used when creating this class

public GetOrdTermsEnum ( AtomicReader reader ) : Lucene.Net.Index.TermsEnum
reader AtomicReader
Результат Lucene.Net.Index.TermsEnum

LookupTerm() публичный Метод

Returns the term (BytesRef) corresponding to the provided ordinal.
public LookupTerm ( Lucene.Net.Index.TermsEnum termsEnum, int ord ) : BytesRef
termsEnum Lucene.Net.Index.TermsEnum
ord int
Результат BytesRef

NumTerms() публичный Метод

Returns the number of terms in this field
public NumTerms ( ) : int
Результат int

RamUsedInBytes() публичный Метод

Returns total bytes used.
public RamUsedInBytes ( ) : long
Результат long

SetActualDocFreq() защищенный Метод

Invoked during #uninvert(AtomicReader,Bits,BytesRef) to record the document frequency for each uninverted term.
protected SetActualDocFreq ( int termNum, int df ) : void
termNum int
df int
Результат void

Uninvert() защищенный Метод

Call this only once (if you subclass!)
protected Uninvert ( AtomicReader reader, Bits liveDocs, BytesRef termPrefix ) : void
reader AtomicReader
liveDocs Bits
termPrefix BytesRef
Результат void

VisitTerm() защищенный Метод

Subclass can override this
protected VisitTerm ( Lucene.Net.Index.TermsEnum te, int termNum ) : void
te Lucene.Net.Index.TermsEnum
termNum int
Результат void

Описание свойств

DocsEnum защищенное свойство

Used while uninverting.
protected DocsEnum,Lucene.Net.Index DocsEnum
Результат Lucene.Net.Index.DocsEnum

Field защищенное свойство

Field we are uninverting.
protected string Field
Результат string

Index защищенное свойство

Holds the per-document ords or a pointer to the ords.
protected int[] Index
Результат int[]

IndexedTermsArray защищенное свойство

Holds the indexed (by default every 128th) terms.
protected BytesRef[] IndexedTermsArray
Результат BytesRef[]

MaxTermDocFreq защищенное свойство

Don't uninvert terms that exceed this count.
protected int MaxTermDocFreq
Результат int

NumTermsInField защищенное свойство

Number of terms in the field.
protected int NumTermsInField
Результат int

OrdBase защищенное свойство

Ordinal of the first term in the field, or 0 if the PostingsFormat does not implement {@link TermsEnum#ord}.
protected int OrdBase
Результат int

Phase1_time защищенное свойство

Time for phase1 of the uninvert process.
protected int Phase1_time
Результат int

Prefix защищенное свойство

If non-null, only terms matching this prefix were indexed.
protected BytesRef Prefix
Результат BytesRef

SizeOfIndexedStrings защищенное свойство

Total bytes (sum of term lengths) for all indexed terms.
protected long SizeOfIndexedStrings
Результат long

TermInstances защищенное свойство

Total number of references to term numbers.
protected long TermInstances
Результат long

Tnums защищенное свойство

Holds term ords for documents.
protected sbyte[][] Tnums
Результат sbyte[][]

Total_time защищенное свойство

Total time to uninvert the field.
protected int Total_time
Результат int