Show / Hide Table of Contents

    Class 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
    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    IndexReader
    AtomicReader
    FilterAtomicReader
    SortingAtomicReader
    Inherited Members
    FilterAtomicReader.Unwrap(AtomicReader)
    FilterAtomicReader.m_input
    FilterAtomicReader.FieldInfos
    FilterAtomicReader.NumDocs
    FilterAtomicReader.MaxDoc
    FilterAtomicReader.DoClose()
    FilterAtomicReader.ToString()
    FilterAtomicReader.CheckIntegrity()
    AtomicReader.Context
    AtomicReader.AtomicContext
    AtomicReader.HasNorms(String)
    AtomicReader.DocFreq(Term)
    AtomicReader.TotalTermFreq(Term)
    AtomicReader.GetSumDocFreq(String)
    AtomicReader.GetDocCount(String)
    AtomicReader.GetSumTotalTermFreq(String)
    AtomicReader.GetTerms(String)
    AtomicReader.GetTermDocsEnum(Term)
    AtomicReader.GetTermPositionsEnum(Term)
    IndexReader.AddReaderClosedListener(IndexReader.IReaderClosedListener)
    IndexReader.RemoveReaderClosedListener(IndexReader.IReaderClosedListener)
    IndexReader.RegisterParentReader(IndexReader)
    IndexReader.RefCount
    IndexReader.IncRef()
    IndexReader.TryIncRef()
    IndexReader.DecRef()
    IndexReader.EnsureOpen()
    IndexReader.Equals(Object)
    IndexReader.GetHashCode()
    IndexReader.Open(Directory)
    IndexReader.Open(Directory, Int32)
    IndexReader.Open(IndexWriter, Boolean)
    IndexReader.Open(IndexCommit)
    IndexReader.Open(IndexCommit, Int32)
    IndexReader.GetTermVector(Int32, String)
    IndexReader.NumDeletedDocs
    IndexReader.Document(Int32)
    Lucene.Net.Index.IndexReader.Document(System.Int32, ISet<>)
    IndexReader.HasDeletions
    IndexReader.Dispose()
    IndexReader.Dispose(Boolean)
    IndexReader.Leaves
    IndexReader.CoreCacheKey
    IndexReader.CombinedCoreAndDeletesKey
    Namespace: Lucene.Net.Index.Sorter
    Assembly: Lucene.Net.Misc.dll
    Syntax
    public class SortingAtomicReader : FilterAtomicReader

    Properties

    | Improve this Doc View Source

    Fields

    Declaration
    public override Fields Fields { get; }
    Property Value
    Type Description
    Fields
    Overrides
    FilterAtomicReader.Fields
    | Improve this Doc View Source

    LiveDocs

    Declaration
    public override IBits LiveDocs { get; }
    Property Value
    Type Description
    IBits
    Overrides
    FilterAtomicReader.LiveDocs

    Methods

    | Improve this Doc View Source

    Document(Int32, StoredFieldVisitor)

    Declaration
    public override void Document(int docID, StoredFieldVisitor visitor)
    Parameters
    Type Name Description
    System.Int32 docID
    StoredFieldVisitor visitor
    | Improve this Doc View Source

    GetBinaryDocValues(String)

    Declaration
    public override BinaryDocValues GetBinaryDocValues(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    BinaryDocValues
    | Improve this Doc View Source

    GetDocsWithField(String)

    Declaration
    public override IBits GetDocsWithField(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IBits
    | Improve this Doc View Source

    GetNormValues(String)

    Declaration
    public override NumericDocValues GetNormValues(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    NumericDocValues
    | Improve this Doc View Source

    GetNumericDocValues(String)

    Declaration
    public override NumericDocValues GetNumericDocValues(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    NumericDocValues
    | Improve this Doc View Source

    GetSortedDocValues(String)

    Declaration
    public override SortedDocValues GetSortedDocValues(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    SortedDocValues
    | Improve this Doc View Source

    GetSortedSetDocValues(String)

    Declaration
    public override SortedSetDocValues GetSortedSetDocValues(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    SortedSetDocValues
    | Improve this Doc View Source

    GetTermVectors(Int32)

    Declaration
    public override Fields GetTermVectors(int docID)
    Parameters
    Type Name Description
    System.Int32 docID
    Returns
    Type Description
    Fields
    | Improve this Doc View Source

    Wrap(AtomicReader, Sort)

    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.

    Declaration
    public static AtomicReader Wrap(AtomicReader reader, Sort sort)
    Parameters
    Type Name Description
    AtomicReader reader
    Sort sort
    Returns
    Type Description
    AtomicReader
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)