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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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