public abstract static class IndexFieldData.XFieldComparatorSource
extends org.apache.lucene.search.FieldComparatorSource
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
IndexFieldData.XFieldComparatorSource.Nested
Simple wrapper class around a filter that matches parent documents
and a filter that matches child documents.
|
| コンストラクタと説明 |
|---|
XFieldComparatorSource() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected Object |
missingObject(Object missingValue,
boolean reversed)
Return the missing object value according to the reduced type of the comparator.
|
Object |
missingValue(boolean reversed)
Return a missing value that is understandable by
SortField.setMissingValue(Object). |
abstract org.apache.lucene.search.SortField.Type |
reducedType() |
protected boolean |
sortMissingFirst(Object missingValue)
Whether missing values should be sorted first.
|
protected boolean |
sortMissingLast(Object missingValue)
Whether missing values should be sorted last, this is the default.
|
protected final boolean sortMissingFirst(Object missingValue)
protected final boolean sortMissingLast(Object missingValue)
protected final Object missingObject(Object missingValue, boolean reversed)
public abstract org.apache.lucene.search.SortField.Type reducedType()
public Object missingValue(boolean reversed)
SortField.setMissingValue(Object).
Most implementations return null because they already replace the value at the fielddata level.
However this can't work in case of strings since there is no such thing as a string which
compares greater than any other string, so in that case we need to return
SortField.STRING_FIRST or SortField.STRING_LAST so that the coordinating node
knows how to deal with null values.Copyright © 2009–2016. All rights reserved.