Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldValueHitQueue

    Inheritance
    System.Object
    FieldValueHitQueue
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public static class FieldValueHitQueue

    Methods

    | Improve this Doc View Source

    Create<T>(SortField[], Int32)

    Creates a hit queue sorted by the given list of fields.

    NOTE: The instances returned by this method pre-allocate a full array of length numHits.

    Declaration
    public static FieldValueHitQueue<T> Create<T>(SortField[] fields, int size)
        where T : FieldValueHitQueue.Entry
    Parameters
    Type Name Description
    SortField[] fields

    SortField array we are sorting by in priority order (highest priority first); cannot be null or empty

    System.Int32 size

    The number of hits to retain. Must be greater than zero.

    Returns
    Type Description
    FieldValueHitQueue<T>
    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    System.IO.IOException

    If there is a low-level IO error

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.