Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MultiDocValues.OrdinalMap

    maps per-segment ordinals to/from global ordinal space

    Inheritance
    object
    MultiDocValues.OrdinalMap
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public class MultiDocValues.OrdinalMap

    Constructors

    OrdinalMap(object, TermsEnum[])

    Creates an ordinal map that allows mapping ords to/from a merged space from subs.

    Declaration
    public OrdinalMap(object owner, TermsEnum[] subs)
    Parameters
    Type Name Description
    object owner

    a cache key

    TermsEnum[] subs

    TermsEnums that support Ord. They need not be dense (e.g. can be FilteredTermsEnums).

    Exceptions
    Type Condition
    IOException

    if an I/O error occurred.

    Properties

    ValueCount

    Returns the total number of unique terms in global ord space.

    Declaration
    public virtual long ValueCount { get; }
    Property Value
    Type Description
    long

    Methods

    GetFirstSegmentNumber(long)

    Given a global ordinal, returns the index of the first segment that contains this term.

    Declaration
    public virtual int GetFirstSegmentNumber(long globalOrd)
    Parameters
    Type Name Description
    long globalOrd
    Returns
    Type Description
    int

    GetFirstSegmentOrd(long)

    Given global ordinal, returns the ordinal of the first segment which contains this ordinal (the corresponding to the segment return GetFirstSegmentNumber(long)).

    Declaration
    public virtual long GetFirstSegmentOrd(long globalOrd)
    Parameters
    Type Name Description
    long globalOrd
    Returns
    Type Description
    long

    GetGlobalOrd(int, long)

    Given a segment number and segment ordinal, returns the corresponding global ordinal.

    Declaration
    public virtual long GetGlobalOrd(int segmentIndex, long segmentOrd)
    Parameters
    Type Name Description
    int segmentIndex
    long segmentOrd
    Returns
    Type Description
    long

    RamBytesUsed()

    Returns total byte size used by this ordinal map.

    Declaration
    public virtual long RamBytesUsed()
    Returns
    Type Description
    long
    Back to top Copyright © 2024 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.