Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RandomAccessOrds

    Extension of SortedSetDocValues that supports random access to the ordinals of a document.

    Operations via this API are independent of the iterator api (NextOrd()) and do not impact its state.

    Codecs can optionally extend this API if they support constant-time access to ordinals for the document.

    Inheritance
    System.Object
    SortedSetDocValues
    RandomAccessOrds
    Inherited Members
    SortedSetDocValues.NO_MORE_ORDS
    SortedSetDocValues.NextOrd()
    SortedSetDocValues.SetDocument(Int32)
    SortedSetDocValues.LookupOrd(Int64, BytesRef)
    SortedSetDocValues.ValueCount
    SortedSetDocValues.LookupTerm(BytesRef)
    SortedSetDocValues.GetTermsEnum()
    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.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class RandomAccessOrds : SortedSetDocValues

    Constructors

    | Improve this Doc View Source

    RandomAccessOrds()

    Sole constructor. (For invocation by subclass constructors, typically implicit.)

    Declaration
    protected RandomAccessOrds()

    Properties

    | Improve this Doc View Source

    Cardinality

    Gets the cardinality for the current document (previously set by SetDocument(Int32).

    Declaration
    public abstract int Cardinality { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    OrdAt(Int32)

    Retrieve the ordinal for the current document (previously set by SetDocument(Int32) at the specified index.

    An index ranges from 0 to Cardinality-1. The first ordinal value is at index 0, the next at index 1, and so on, as for array indexing.

    Declaration
    public abstract long OrdAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    index of the ordinal for the document.

    Returns
    Type Description
    System.Int64

    ordinal for the document at the specified index.

    • 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.