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

{@code AtomicReader} is an abstract class, providing an interface for accessing an index. Search of an index is done entirely through this abstract interface, so that any subclass which implements it is searchable. IndexReaders implemented by this subclass do not consist of several sub-readers, they are atomic. They support retrieval of stored fields, doc values, terms, and postings.

For efficiency, in this API documents are often referred to via document numbers, non-negative integers which each name a unique document in the index. These document numbers are ephemeral -- they may change as documents are added to and deleted from an index. Clients should thus not rely on a given document having the same number between sessions.

NOTE: {@link IndexReader} instances are completely thread safe, meaning multiple threads can call any of its methods, concurrently. If your application requires external synchronization, you should not synchronize on the IndexReader instance; use your own (non-Lucene) objects instead.

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

공개 메소드들

메소드 설명
CheckIntegrity ( ) : void

Checks consistency of this reader.

Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files. @lucene.internal

DocFreq ( Lucene.Net.Index.Term term ) : int
GetBinaryDocValues ( string field ) : Lucene.Net.Index.BinaryDocValues

Returns BinaryDocValues for this field, or null if no BinaryDocValues were indexed for this field. The returned instance should only be used by a single thread.

GetDocCount ( string field ) : int
GetDocsWithField ( string field ) : Bits

Returns a Bits at the size of reader.maxDoc(), with turned on bits for each docid that does have a value for this field, or null if no DocValues were indexed for this field. The returned instance should only be used by a single thread

GetNormValues ( string field ) : Lucene.Net.Index.NumericDocValues

Returns NumericDocValues representing norms for this field, or null if no NumericDocValues were indexed. The returned instance should only be used by a single thread.

GetNumericDocValues ( string field ) : Lucene.Net.Index.NumericDocValues

Returns NumericDocValues for this field, or null if no NumericDocValues were indexed for this field. The returned instance should only be used by a single thread.

GetSortedDocValues ( string field ) : Lucene.Net.Index.SortedDocValues

Returns SortedDocValues for this field, or null if no SortedDocValues were indexed for this field. The returned instance should only be used by a single thread.

GetSortedSetDocValues ( string field ) : Lucene.Net.Index.SortedSetDocValues

Returns SortedSetDocValues for this field, or null if no SortedSetDocValues were indexed for this field. The returned instance should only be used by a single thread.

GetSumDocFreq ( string field ) : long
GetSumTotalTermFreq ( string field ) : long
HasNorms ( string field ) : bool

Returns true if there are norms stored for this field.

TermDocsEnum ( Lucene.Net.Index.Term term ) : Lucene.Net.Index.DocsEnum

Returns DocsEnum for the specified term. this will return null if either the field or term does not exist.

TermPositionsEnum ( Lucene.Net.Index.Term term ) : Lucene.Net.Index.DocsAndPositionsEnum

Returns DocsAndPositionsEnum for the specified term. this will return null if the field or term does not exist or positions weren't indexed.

Terms ( string field ) : Lucene.Net.Index.Terms

this may return null if the field does not exist.

TotalTermFreq ( Lucene.Net.Index.Term term ) : long

Returns the number of documents containing the term t. this method returns 0 if the term or field does not exists. this method does not take into account deleted documents that have not yet been merged away.

보호된 메소드들

메소드 설명
AtomicReader ( ) : System.Diagnostics

Sole constructor. (For invocation by subclass constructors, typically implicit.)

비공개 메소드들

메소드 설명
InitializeInstanceFields ( ) : void

메소드 상세

AtomicReader() 보호된 메소드

Sole constructor. (For invocation by subclass constructors, typically implicit.)
protected AtomicReader ( ) : System.Diagnostics
리턴 System.Diagnostics

CheckIntegrity() 공개 추상적인 메소드

Checks consistency of this reader.

Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files. @lucene.internal

public abstract CheckIntegrity ( ) : void
리턴 void

DocFreq() 공개 최종 메소드

public final DocFreq ( Lucene.Net.Index.Term term ) : int
term Lucene.Net.Index.Term
리턴 int

GetBinaryDocValues() 공개 추상적인 메소드

Returns BinaryDocValues for this field, or null if no BinaryDocValues were indexed for this field. The returned instance should only be used by a single thread.
public abstract GetBinaryDocValues ( string field ) : Lucene.Net.Index.BinaryDocValues
field string
리턴 Lucene.Net.Index.BinaryDocValues

GetDocCount() 공개 최종 메소드

public final GetDocCount ( string field ) : int
field string
리턴 int

GetDocsWithField() 공개 추상적인 메소드

Returns a Bits at the size of reader.maxDoc(), with turned on bits for each docid that does have a value for this field, or null if no DocValues were indexed for this field. The returned instance should only be used by a single thread
public abstract GetDocsWithField ( string field ) : Bits
field string
리턴 Bits

GetNormValues() 공개 추상적인 메소드

Returns NumericDocValues representing norms for this field, or null if no NumericDocValues were indexed. The returned instance should only be used by a single thread.
public abstract GetNormValues ( string field ) : Lucene.Net.Index.NumericDocValues
field string
리턴 Lucene.Net.Index.NumericDocValues

GetNumericDocValues() 공개 추상적인 메소드

Returns NumericDocValues for this field, or null if no NumericDocValues were indexed for this field. The returned instance should only be used by a single thread.
public abstract GetNumericDocValues ( string field ) : Lucene.Net.Index.NumericDocValues
field string
리턴 Lucene.Net.Index.NumericDocValues

GetSortedDocValues() 공개 추상적인 메소드

Returns SortedDocValues for this field, or null if no SortedDocValues were indexed for this field. The returned instance should only be used by a single thread.
public abstract GetSortedDocValues ( string field ) : Lucene.Net.Index.SortedDocValues
field string
리턴 Lucene.Net.Index.SortedDocValues

GetSortedSetDocValues() 공개 추상적인 메소드

Returns SortedSetDocValues for this field, or null if no SortedSetDocValues were indexed for this field. The returned instance should only be used by a single thread.
public abstract GetSortedSetDocValues ( string field ) : Lucene.Net.Index.SortedSetDocValues
field string
리턴 Lucene.Net.Index.SortedSetDocValues

GetSumDocFreq() 공개 최종 메소드

public final GetSumDocFreq ( string field ) : long
field string
리턴 long

GetSumTotalTermFreq() 공개 최종 메소드

public final GetSumTotalTermFreq ( string field ) : long
field string
리턴 long

HasNorms() 공개 메소드

Returns true if there are norms stored for this field.
public HasNorms ( string field ) : bool
field string
리턴 bool

TermDocsEnum() 공개 메소드

Returns DocsEnum for the specified term. this will return null if either the field or term does not exist.
public TermDocsEnum ( Lucene.Net.Index.Term term ) : Lucene.Net.Index.DocsEnum
term Lucene.Net.Index.Term
리턴 Lucene.Net.Index.DocsEnum

TermPositionsEnum() 공개 메소드

Returns DocsAndPositionsEnum for the specified term. this will return null if the field or term does not exist or positions weren't indexed.
public TermPositionsEnum ( Lucene.Net.Index.Term term ) : Lucene.Net.Index.DocsAndPositionsEnum
term Lucene.Net.Index.Term
리턴 Lucene.Net.Index.DocsAndPositionsEnum

Terms() 공개 메소드

this may return null if the field does not exist.
public Terms ( string field ) : Lucene.Net.Index.Terms
field string
리턴 Lucene.Net.Index.Terms

TotalTermFreq() 공개 최종 메소드

Returns the number of documents containing the term t. this method returns 0 if the term or field does not exists. this method does not take into account deleted documents that have not yet been merged away.
public final TotalTermFreq ( Lucene.Net.Index.Term term ) : long
term Lucene.Net.Index.Term
리턴 long