not bytes...

This commit is contained in:
Shay Banon 2013-02-28 16:02:38 +01:00
parent 1d45edd856
commit 2bc624806d
2 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ abstract class DoubleValuesComparatorBase<T extends Number> extends FieldCompara
public final FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException {
readerValues = indexFieldData.load(context).getDoubleValues();
if (readerValues.isMultiValued()) {
readerValues = new MultiValuedBytesWrapper(readerValues, sortMode);
readerValues = new MultiValueWrapper(readerValues, sortMode);
}
return this;
}
@ -71,11 +71,11 @@ abstract class DoubleValuesComparatorBase<T extends Number> extends FieldCompara
}
}
static final class MultiValuedBytesWrapper extends DoubleValues.FilteredDoubleValues {
static final class MultiValueWrapper extends DoubleValues.FilteredDoubleValues {
private final SortMode sortMode;
public MultiValuedBytesWrapper(DoubleValues delegate, SortMode sortMode) {
public MultiValueWrapper(DoubleValues delegate, SortMode sortMode) {
super(delegate);
this.sortMode = sortMode;
}

View File

@ -67,16 +67,16 @@ abstract class LongValuesComparatorBase<T extends Number> extends FieldComparato
public final FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException {
readerValues = indexFieldData.load(context).getLongValues();
if (readerValues.isMultiValued()) {
readerValues = new MultiValuedBytesWrapper(readerValues, sortMode);
readerValues = new MultiValueWrapper(readerValues, sortMode);
}
return this;
}
private static final class MultiValuedBytesWrapper extends LongValues.FilteredLongValues {
private static final class MultiValueWrapper extends LongValues.FilteredLongValues {
private final SortMode sortMode;
public MultiValuedBytesWrapper(LongValues delegate, SortMode sortMode) {
public MultiValueWrapper(LongValues delegate, SortMode sortMode) {
super(delegate);
this.sortMode = sortMode;
}