don't do double int[] lookup for ordinal

This commit is contained in:
Shay Banon 2011-09-09 14:06:54 +03:00
parent 84ae001731
commit bf70836e92
8 changed files with 8 additions and 8 deletions

View File

@ -160,7 +160,7 @@ public class MultiValueByteFieldData extends ByteFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -149,7 +149,7 @@ public class MultiValueDoubleFieldData extends DoubleFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -160,7 +160,7 @@ public class MultiValueFloatFieldData extends FloatFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -160,7 +160,7 @@ public class MultiValueIntFieldData extends IntFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -162,7 +162,7 @@ public class MultiValueLongFieldData extends LongFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -160,7 +160,7 @@ public class MultiValueShortFieldData extends ShortFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -90,7 +90,7 @@ public class MultiValueStringFieldData extends StringFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {

View File

@ -123,7 +123,7 @@ public class MultiValueGeoPointFieldData extends GeoPointFieldData {
int loc = ordinal[docId]; int loc = ordinal[docId];
if (loc != 0) { if (loc != 0) {
found = true; found = true;
proc.onOrdinal(docId, ordinal[docId]); proc.onOrdinal(docId, loc);
} }
} }
if (!found) { if (!found) {