Class ReplicatedDataSerializer.KeyComparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessage>

java.lang.Object
org.apache.pekko.cluster.ddata.protobuf.ReplicatedDataSerializer.KeyComparator<A>
All Implemented Interfaces:
Comparator<A>
Direct Known Subclasses:
ReplicatedDataSerializer.LWWMapEntryComparator$, ReplicatedDataSerializer.ORMapEntryComparator$, ReplicatedDataSerializer.ORMultiMapEntryComparator$, ReplicatedDataSerializer.PNCounterMapEntryComparator$
Enclosing class:
ReplicatedDataSerializer

public abstract static class ReplicatedDataSerializer.KeyComparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessage> extends Object implements Comparator<A>
  • Constructor Details

    • KeyComparator

      public KeyComparator()
  • Method Details

    • compare

      public final int compare(A x, A y)
      Specified by:
      compare in interface Comparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessage>
    • getKey

      public abstract Object getKey(A entry)
      Get the key from the entry. The key may be a String, Int, Long, or OtherMessage
      Parameters:
      entry - The protobuf entry used with Map types
      Returns:
      The Key