Class SyntheticSourceMalformedValueSorter

java.lang.Object
org.elasticsearch.index.mapper.SyntheticSourceMalformedValueSorter

public final class SyntheticSourceMalformedValueSorter extends Object
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 Details

    • comparator

      public static Comparator<Object> comparator()
      Returns a comparator that orders malformed values in the same order as the loader.
    • sort

      public static void sort(List<Object> malformedValues)
      Sorts the given list of malformed values in place in loader order.