Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AssertingSortedSetDocValues

    Wraps a Lucene.Net.Index.SortedSetDocValues but with additional asserts

    Inheritance
    object
    SortedSetDocValues
    AssertingSortedSetDocValues
    Inherited Members
    SortedSetDocValues.NO_MORE_ORDS
    SortedSetDocValues.GetTermsEnum()
    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.TestFramework.dll
    Syntax
    public class AssertingSortedSetDocValues : SortedSetDocValues

    Constructors

    AssertingSortedSetDocValues(SortedSetDocValues, int)

    Wraps a Lucene.Net.Index.SortedSetDocValues but with additional asserts

    Declaration
    public AssertingSortedSetDocValues(SortedSetDocValues @in, int maxDoc)
    Parameters
    Type Name Description
    SortedSetDocValues in
    int maxDoc

    Properties

    ValueCount

    Returns the number of unique values.

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

    Number of unique values in this Lucene.Net.Index.SortedDocValues. This is also equivalent to one plus the maximum ordinal.

    Overrides
    Lucene.Net.Index.SortedSetDocValues.ValueCount

    Methods

    LookupOrd(long, BytesRef)

    Retrieves the value for the specified ordinal.

    Declaration
    public override void LookupOrd(long ord, BytesRef result)
    Parameters
    Type Name Description
    long ord

    ordinal to lookup

    BytesRef result

    will be populated with the ordinal's value

    Overrides
    SortedSetDocValues.LookupOrd(long, BytesRef)
    See Also
    NextOrd()

    LookupTerm(BytesRef)

    If key exists, returns its ordinal, else returns -insertionPoint-1, like BinarySearch(Array, int, int, object).

    Declaration
    public override long LookupTerm(BytesRef key)
    Parameters
    Type Name Description
    BytesRef key

    Key to look up

    Returns
    Type Description
    long
    Overrides
    Lucene.Net.Index.SortedSetDocValues.LookupTerm(Lucene.Net.Util.BytesRef)

    NextOrd()

    Returns the next ordinal for the current document (previously set by SetDocument(int).

    Declaration
    public override long NextOrd()
    Returns
    Type Description
    long

    Next ordinal for the document, or Lucene.Net.Index.SortedSetDocValues.NO_MORE_ORDS. ordinals are dense, start at 0, then increment by 1 for the next value in sorted order.

    Overrides
    Lucene.Net.Index.SortedSetDocValues.NextOrd()

    SetDocument(int)

    Sets iteration to the specified docID

    Declaration
    public override void SetDocument(int docID)
    Parameters
    Type Name Description
    int docID

    document ID

    Overrides
    SortedSetDocValues.SetDocument(int)
    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.