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
    System.Object
    MissingOrdRemapper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Codecs
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class MissingOrdRemapper

    Methods

    | Improve this Doc View Source

    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
    System.Collections.Generic.IEnumerable<Lucene.Net.Util.BytesRef> iterable
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Lucene.Net.Util.BytesRef>
    | Improve this Doc View Source

    MapAllOrds(IEnumerable<Nullable<Int64>>)

    Remaps every ord+1 on this enumerable.

    Declaration
    public static IEnumerable<long?> MapAllOrds(IEnumerable<long?> iterable)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Nullable<System.Int64>> iterable
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Nullable<System.Int64>>
    | Improve this Doc View Source

    MapMissingToOrd0(IEnumerable<Nullable<Int64>>)

    Remaps ord -1 to ord 0 on this enumerable.

    Declaration
    public static IEnumerable<long?> MapMissingToOrd0(IEnumerable<long?> iterable)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Nullable<System.Int64>> iterable
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Nullable<System.Int64>>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.