Package com.linkedin.venice.router.api
Class RouterKey
- java.lang.Object
-
- com.linkedin.venice.router.api.RouterKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
base64Encoded()
int
compareTo(RouterKey other)
boolean
equals(java.lang.Object o)
static RouterKey
fromBase64(java.lang.String s)
static RouterKey
fromString(java.lang.String s)
java.nio.ByteBuffer
getKeyBuffer()
int
getKeySize()
int
getPartitionId()
int
hashCode()
void
setPartitionId(int partitionId)
java.lang.String
toString()
-
-
-
Method Detail
-
fromString
public static RouterKey fromString(java.lang.String s)
-
fromBase64
public static RouterKey fromBase64(java.lang.String s)
-
base64Encoded
public java.lang.String base64Encoded()
-
getKeyBuffer
public java.nio.ByteBuffer getKeyBuffer()
-
getKeySize
public int getKeySize()
-
compareTo
public int compareTo(RouterKey other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RouterKey>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
setPartitionId
public void setPartitionId(int partitionId)
-
getPartitionId
public int getPartitionId()
-
-