Class RouterKey

java.lang.Object
com.linkedin.venice.router.api.RouterKey
All Implemented Interfaces:
Comparable<RouterKey>

public class RouterKey extends Object implements Comparable<RouterKey>
RouterKey encapsulates the required information for a key in a router request.
  • Constructor Details

    • RouterKey

      public RouterKey(byte[] key)
    • RouterKey

      public RouterKey(ByteBuffer key)
  • Method Details

    • fromString

      public static RouterKey fromString(String s)
    • fromBase64

      public static RouterKey fromBase64(String s)
    • base64Encoded

      public String base64Encoded()
    • getKeyBuffer

      public ByteBuffer getKeyBuffer()
    • getKeySize

      public int getKeySize()
    • compareTo

      public int compareTo(RouterKey other)
      Specified by:
      compareTo in interface Comparable<RouterKey>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • setPartitionId

      public void setPartitionId(int partitionId)
    • getPartitionId

      public int getPartitionId()