Class BytesRefUtils

java.lang.Object
org.opensearch.core.util.BytesRefUtils

public class BytesRefUtils extends Object
Utilities for sorting Lucene BytesRefArray
Opensearch.internal:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    bytesToLong(org.apache.lucene.util.BytesRef bytes)
    Decodes a long value written as bytes in big endian order.
    static void
    sort(org.apache.lucene.util.BytesRefArray bytes, int[] indices)
     
    static int
    sortAndDedup(org.apache.lucene.util.BytesRefArray bytes, int[] indices)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BytesRefUtils

      public BytesRefUtils()
  • Method Details

    • sort

      public static void sort(org.apache.lucene.util.BytesRefArray bytes, int[] indices)
    • sortAndDedup

      public static int sortAndDedup(org.apache.lucene.util.BytesRefArray bytes, int[] indices)
    • bytesToLong

      public static long bytesToLong(org.apache.lucene.util.BytesRef bytes)
      Decodes a long value written as bytes in big endian order.
      Parameters:
      bytes - in big endian order
      Returns:
      long value