C# 클래스 Lucene.Net.Index.DocTermOrds

파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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