C# 클래스 Lucene.Net.Index.Sorter.SortingAtomicReader

An AtomicReader which supports sorting documents by a given Sort. You can use this class to sort an index as follows: IndexWriter writer; // writer to which the sorted index will be added DirectoryReader reader; // reader on the input index Sort sort; // determines how the documents are sorted AtomicReader sortingReader = SortingAtomicReader.Wrap(SlowCompositeReaderWrapper.Wrap(reader), sort); writer.AddIndexes(reader); reader.Dispose(); // alternatively, you can use a using block writer.Dispose(); // alternatively, you can use a using block @lucene.experimental
상속: FilterAtomicReader
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
Document ( int docID, StoredFieldVisitor visitor ) : void
GetBinaryDocValues ( string field ) : BinaryDocValues
GetDocsWithField ( string field ) : Bits
GetNormValues ( string field ) : NumericDocValues
GetNumericDocValues ( string field ) : NumericDocValues
GetSortedDocValues ( string field ) : SortedDocValues
GetSortedSetDocValues ( string field ) : SortedSetDocValues
GetTermVectors ( int docID ) : Fields
Wrap ( AtomicReader reader, Lucene.Net.Search.Sort sort ) : AtomicReader

Return a sorted view of reader according to the order defined by sort. If the reader is already sorted, this method might return the reader as-is.

비공개 메소드들

메소드 설명
SortingAtomicReader ( AtomicReader @in, Lucene.Net.Util.Sorter docMap ) : System
Wrap ( AtomicReader reader, Lucene.Net.Util.Sorter docMap ) : AtomicReader

Expert: same as Wrap(AtomicReader, Sort) but operates directly on a Sorter.DocMap.

메소드 상세

Document() 공개 메소드

public Document ( int docID, StoredFieldVisitor visitor ) : void
docID int
visitor StoredFieldVisitor
리턴 void

GetBinaryDocValues() 공개 메소드

public GetBinaryDocValues ( string field ) : BinaryDocValues
field string
리턴 BinaryDocValues

GetDocsWithField() 공개 메소드

public GetDocsWithField ( string field ) : Bits
field string
리턴 Bits

GetNormValues() 공개 메소드

public GetNormValues ( string field ) : NumericDocValues
field string
리턴 NumericDocValues

GetNumericDocValues() 공개 메소드

public GetNumericDocValues ( string field ) : NumericDocValues
field string
리턴 NumericDocValues

GetSortedDocValues() 공개 메소드

public GetSortedDocValues ( string field ) : SortedDocValues
field string
리턴 SortedDocValues

GetSortedSetDocValues() 공개 메소드

public GetSortedSetDocValues ( string field ) : SortedSetDocValues
field string
리턴 SortedSetDocValues

GetTermVectors() 공개 메소드

public GetTermVectors ( int docID ) : Fields
docID int
리턴 Fields

Wrap() 공개 정적인 메소드

Return a sorted view of reader according to the order defined by sort. If the reader is already sorted, this method might return the reader as-is.
public static Wrap ( AtomicReader reader, Lucene.Net.Search.Sort sort ) : AtomicReader
reader AtomicReader
sort Lucene.Net.Search.Sort
리턴 AtomicReader