C# Class 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
Inheritance: FilterAtomicReader
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

Document() public méthode

public Document ( int docID, StoredFieldVisitor visitor ) : void
docID int
visitor StoredFieldVisitor
Résultat void

GetBinaryDocValues() public méthode

public GetBinaryDocValues ( string field ) : BinaryDocValues
field string
Résultat BinaryDocValues

GetDocsWithField() public méthode

public GetDocsWithField ( string field ) : Bits
field string
Résultat Bits

GetNormValues() public méthode

public GetNormValues ( string field ) : NumericDocValues
field string
Résultat NumericDocValues

GetNumericDocValues() public méthode

public GetNumericDocValues ( string field ) : NumericDocValues
field string
Résultat NumericDocValues

GetSortedDocValues() public méthode

public GetSortedDocValues ( string field ) : SortedDocValues
field string
Résultat SortedDocValues

GetSortedSetDocValues() public méthode

public GetSortedSetDocValues ( string field ) : SortedSetDocValues
field string
Résultat SortedSetDocValues

GetTermVectors() public méthode

public GetTermVectors ( int docID ) : Fields
docID int
Résultat Fields

Wrap() public static méthode

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
Résultat AtomicReader