Package com.linkedin.venice.router.api
Class RouterKey
java.lang.Object
com.linkedin.venice.router.api.RouterKey
- All Implemented Interfaces:
Comparable<RouterKey>
RouterKey
encapsulates the required information for a key in a router request.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static RouterKey
fromBase64
(String s) static RouterKey
fromString
(String s) int
int
int
hashCode()
void
setPartitionId
(int partitionId) toString()
-
Constructor Details
-
RouterKey
public RouterKey(byte[] key) -
RouterKey
-
-
Method Details
-
fromString
-
fromBase64
-
base64Encoded
-
getKeyBuffer
-
getKeySize
public int getKeySize() -
compareTo
- Specified by:
compareTo
in interfaceComparable<RouterKey>
-
toString
-
hashCode
public int hashCode() -
equals
-
setPartitionId
public void setPartitionId(int partitionId) -
getPartitionId
public int getPartitionId()
-