not bytes...
This commit is contained in:
parent
1d45edd856
commit
2bc624806d
|
@ -56,7 +56,7 @@ abstract class DoubleValuesComparatorBase<T extends Number> extends FieldCompara
|
||||||
public final FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException {
|
public final FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException {
|
||||||
readerValues = indexFieldData.load(context).getDoubleValues();
|
readerValues = indexFieldData.load(context).getDoubleValues();
|
||||||
if (readerValues.isMultiValued()) {
|
if (readerValues.isMultiValued()) {
|
||||||
readerValues = new MultiValuedBytesWrapper(readerValues, sortMode);
|
readerValues = new MultiValueWrapper(readerValues, sortMode);
|
||||||
}
|
}
|
||||||
return this;
|
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;
|
private final SortMode sortMode;
|
||||||
|
|
||||||
public MultiValuedBytesWrapper(DoubleValues delegate, SortMode sortMode) {
|
public MultiValueWrapper(DoubleValues delegate, SortMode sortMode) {
|
||||||
super(delegate);
|
super(delegate);
|
||||||
this.sortMode = sortMode;
|
this.sortMode = sortMode;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,16 +67,16 @@ abstract class LongValuesComparatorBase<T extends Number> extends FieldComparato
|
||||||
public final FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException {
|
public final FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException {
|
||||||
readerValues = indexFieldData.load(context).getLongValues();
|
readerValues = indexFieldData.load(context).getLongValues();
|
||||||
if (readerValues.isMultiValued()) {
|
if (readerValues.isMultiValued()) {
|
||||||
readerValues = new MultiValuedBytesWrapper(readerValues, sortMode);
|
readerValues = new MultiValueWrapper(readerValues, sortMode);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class MultiValuedBytesWrapper extends LongValues.FilteredLongValues {
|
private static final class MultiValueWrapper extends LongValues.FilteredLongValues {
|
||||||
|
|
||||||
private final SortMode sortMode;
|
private final SortMode sortMode;
|
||||||
|
|
||||||
public MultiValuedBytesWrapper(LongValues delegate, SortMode sortMode) {
|
public MultiValueWrapper(LongValues delegate, SortMode sortMode) {
|
||||||
super(delegate);
|
super(delegate);
|
||||||
this.sortMode = sortMode;
|
this.sortMode = sortMode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue