|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.codecs.MissingOrdRemapper
public 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)
| Constructor Summary | |
|---|---|
MissingOrdRemapper()
|
|
| Method Summary | |
|---|---|
static Iterable<BytesRef> |
insertEmptyValue(Iterable<BytesRef> iterable)
insert an empty byte[] to the front of this iterable |
static Iterable<Number> |
mapAllOrds(Iterable<Number> iterable)
remaps every ord+1 on this iterable |
static Iterable<Number> |
mapMissingToOrd0(Iterable<Number> iterable)
remaps ord -1 to ord 0 on this iterable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MissingOrdRemapper()
| Method Detail |
|---|
public static Iterable<BytesRef> insertEmptyValue(Iterable<BytesRef> iterable)
public static Iterable<Number> mapMissingToOrd0(Iterable<Number> iterable)
public static Iterable<Number> mapAllOrds(Iterable<Number> iterable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||