Skip to content

Commit

Permalink
Index sort print
Browse files Browse the repository at this point in the history
  • Loading branch information
gashutos committed Sep 14, 2023
1 parent dbafffa commit 63161f8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public enum NumericType {
BOOLEAN(false, SortField.Type.INT, CoreValuesSourceType.BOOLEAN),
BYTE(false, SortField.Type.INT, CoreValuesSourceType.NUMERIC),
SHORT(false, SortField.Type.INT, CoreValuesSourceType.NUMERIC),
INT(false, SortField.Type.INT, CoreValuesSourceType.NUMERIC),
INT(false, SortField.Type.LONG, CoreValuesSourceType.NUMERIC),
LONG(false, SortField.Type.LONG, CoreValuesSourceType.NUMERIC),
DATE(false, SortField.Type.LONG, CoreValuesSourceType.DATE),
DATE_NANOSECONDS(false, SortField.Type.LONG, CoreValuesSourceType.DATE),
Expand Down Expand Up @@ -160,7 +160,7 @@ public final SortField sortField(Object missingValue, MultiValueMode sortMode, N

@Override
public final SortField indexSortField(Object missingValue, MultiValueMode sortMode, Nested nested, boolean reverse) {
getNumericType().modifySortFieldTypeForIndexSortIfNeeded();
//getNumericType().modifySortFieldTypeForIndexSortIfNeeded();
return sortField(getNumericType(), missingValue, sortMode, nested, reverse);
}

Expand Down Expand Up @@ -221,11 +221,11 @@ private XFieldComparatorSource comparatorSource(
return dateComparatorSource(missingValue, sortMode, nested);
case DATE_NANOSECONDS:
return dateNanosComparatorSource(missingValue, sortMode, nested);
case LONG:
/*case LONG:
System.out.println("CHETAN logs LONG");
return new LongValuesComparatorSource(this, missingValue, sortMode, nested);
return new LongValuesComparatorSource(this, missingValue, sortMode, nested);*/
default:
System.out.println("CHETAN logs INT" + targetNumericType);
System.out.println("CHETAN logs " + targetNumericType);
assert !targetNumericType.isFloatingPoint();
return new IntValuesComparatorSource(this, missingValue, sortMode, nested);
}
Expand Down

0 comments on commit 63161f8

Please sign in to comment.