Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MissingOrdRemapper

    A utility class to write missing values for SORTED as if they were the empty string (to simulate pre-Lucene4.5 dv behavior for testing old codecs).

    Inheritance
    object
    MissingOrdRemapper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Codecs
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class MissingOrdRemapper

    Methods

    InsertEmptyValue(IEnumerable<BytesRef>)

    Insert an empty byte[] to the front of this enumerable.

    Declaration
    public static IEnumerable<BytesRef> InsertEmptyValue(IEnumerable<BytesRef> iterable)
    Parameters
    Type Name Description
    IEnumerable<BytesRef> iterable
    Returns
    Type Description
    IEnumerable<BytesRef>

    MapAllOrds(IEnumerable<long?>)

    Remaps every ord+1 on this enumerable.

    Declaration
    public static IEnumerable<long?> MapAllOrds(IEnumerable<long?> iterable)
    Parameters
    Type Name Description
    IEnumerable<long?> iterable
    Returns
    Type Description
    IEnumerable<long?>

    MapMissingToOrd0(IEnumerable<long?>)

    Remaps ord -1 to ord 0 on this enumerable.

    Declaration
    public static IEnumerable<long?> MapMissingToOrd0(IEnumerable<long?> iterable)
    Parameters
    Type Name Description
    IEnumerable<long?> iterable
    Returns
    Type Description
    IEnumerable<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.