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
    Namespace: Lucene.Net.Codecs
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class MissingOrdRemapper : object

    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
    IEnumerable<BytesRef> iterable
    Returns
    Type Description
    IEnumerable<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
    IEnumerable<System.Nullable<System.Int64>> iterable
    Returns
    Type Description
    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
    IEnumerable<System.Nullable<System.Int64>> iterable
    Returns
    Type Description
    IEnumerable<System.Nullable<System.Int64>>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)