Package org.elasticsearch.index.mapper
Class SyntheticSourceMalformedValueSorter
java.lang.Object
org.elasticsearch.index.mapper.SyntheticSourceMalformedValueSorter
Sorts malformed values in the same order as the synthetic source loader, which stores them in binary doc values and sorts by encoded
BytesRef (type byte + value bytes). Uses
XContentDataHelper.encodeToken(XContentParser) so the sort order always matches the
index.-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<Object> Returns a comparator that orders malformed values in the same order as the loader.static voidSorts the given list of malformed values in place in loader order.
-
Method Details
-
comparator
Returns a comparator that orders malformed values in the same order as the loader. -
sort
Sorts the given list of malformed values in place in loader order.
-