Class InternalKeyComparator

java.lang.Object
org.iq80.leveldb.impl.InternalKeyComparator
All Implemented Interfaces:
Comparator<InternalKey>

public class InternalKeyComparator extends Object implements Comparator<InternalKey>
  • Field Details

  • Constructor Details

    • InternalKeyComparator

      public InternalKeyComparator(UserComparator userComparator)
  • Method Details

    • getUserComparator

      public UserComparator getUserComparator()
    • name

      public String name()
    • compare

      public int compare(InternalKey left, InternalKey right)
      Specified by:
      compare in interface Comparator<InternalKey>
    • isOrdered

      public boolean isOrdered(InternalKey... keys)
      Returns true if each element in iterable after the first is greater than or equal to the element that preceded it, according to this ordering. Note that this is always true when the iterable has fewer than two elements.
    • isOrdered

      public boolean isOrdered(Iterable<InternalKey> keys)
      Returns true if each element in iterable after the first is greater than or equal to the element that preceded it, according to this ordering. Note that this is always true when the iterable has fewer than two elements.