Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AssertingSortedDocValues

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

    Inheritance
    object
    BinaryDocValues
    SortedDocValues
    AssertingSortedDocValues
    Inherited Members
    SortedDocValues.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 AssertingSortedDocValues : SortedDocValues

    Constructors

    AssertingSortedDocValues(SortedDocValues, int)

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

    Declaration
    public AssertingSortedDocValues(SortedDocValues @in, int maxDoc)
    Parameters
    Type Name Description
    SortedDocValues in
    int maxDoc

    Properties

    ValueCount

    Returns the number of unique values.

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

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

    Overrides
    Lucene.Net.Index.SortedDocValues.ValueCount

    Methods

    Get(int, BytesRef)

    Lookup the value for document.

    Declaration
    public override void Get(int docID, BytesRef result)
    Parameters
    Type Name Description
    int docID
    BytesRef result
    Overrides
    SortedDocValues.Get(int, BytesRef)

    GetOrd(int)

    Returns the ordinal for the specified docID.

    Declaration
    public override int GetOrd(int docID)
    Parameters
    Type Name Description
    int docID

    document ID to lookup

    Returns
    Type Description
    int

    ordinal for the document: this is dense, starts at 0, then increments by 1 for the next value in sorted order. Note that missing values are indicated by -1.

    Overrides
    SortedDocValues.GetOrd(int)

    LookupOrd(int, BytesRef)

    Retrieves the value for the specified ordinal.

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

    ordinal to lookup (must be >= 0 and < Lucene.Net.Index.SortedDocValues.ValueCount)

    BytesRef result

    will be populated with the ordinal's value

    Overrides
    SortedDocValues.LookupOrd(int, BytesRef)
    See Also
    GetOrd(int)

    LookupTerm(BytesRef)

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

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

    Key to look up

    Returns
    Type Description
    int
    Overrides
    Lucene.Net.Index.SortedDocValues.LookupTerm(Lucene.Net.Util.BytesRef)
    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.