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()
    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()

    Methods

    | Improve this Doc View Source

    Cardinality()

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

    Declaration
    public abstract int Cardinality()
    Returns
    Type Description
    System.Int32
    | 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 © 2020 Licensed to the Apache Software Foundation (ASF)