don't do double int[] lookup for ordinal
This commit is contained in:
parent
84ae001731
commit
bf70836e92
|
@ -160,7 +160,7 @@ public class MultiValueByteFieldData extends ByteFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -149,7 +149,7 @@ public class MultiValueDoubleFieldData extends DoubleFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -160,7 +160,7 @@ public class MultiValueFloatFieldData extends FloatFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -160,7 +160,7 @@ public class MultiValueIntFieldData extends IntFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -162,7 +162,7 @@ public class MultiValueLongFieldData extends LongFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -160,7 +160,7 @@ public class MultiValueShortFieldData extends ShortFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -90,7 +90,7 @@ public class MultiValueStringFieldData extends StringFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
|
@ -123,7 +123,7 @@ public class MultiValueGeoPointFieldData extends GeoPointFieldData {
|
|||
int loc = ordinal[docId];
|
||||
if (loc != 0) {
|
||||
found = true;
|
||||
proc.onOrdinal(docId, ordinal[docId]);
|
||||
proc.onOrdinal(docId, loc);
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
Loading…
Reference in New Issue