Package org.apache.lucene.codecs
Class MissingOrdRemapper
- java.lang.Object
-
- org.apache.lucene.codecs.MissingOrdRemapper
-
public class MissingOrdRemapper extends Object
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)
-
-
Constructor Summary
Constructors Constructor Description MissingOrdRemapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Iterable<BytesRef>
insertEmptyValue(Iterable<BytesRef> iterable)
insert an empty byte[] to the front of this iterablestatic Iterable<Number>
mapAllOrds(Iterable<Number> iterable)
remaps every ord+1 on this iterablestatic Iterable<Number>
mapMissingToOrd0(Iterable<Number> iterable)
remaps ord -1 to ord 0 on this iterable.
-