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 SourceInsertEmptyValue(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> |
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>> |
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>> |