Class GetRouterRequest
- java.lang.Object
-
- com.linkedin.venice.listener.request.RouterRequest
-
- com.linkedin.venice.listener.request.GetRouterRequest
-
public class GetRouterRequest extends RouterRequest
GetRouterRequest
encapsulates a GET request to storage/resourcename/partition/key on the storage node for a single-get operation.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.listener.request.RouterRequest
NO_REQUEST_TIMEOUT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getKeyBytes()
static byte[]
getKeyBytesFromUrlKeyString(java.lang.String keyString)
int
getKeyCount()
int
getPartition()
RequestType
getRequestType()
static GetRouterRequest
grpcGetRouterRequest(VeniceClientRequest request)
static GetRouterRequest
parseGetHttpRequest(io.netty.handler.codec.http.HttpRequest request, java.lang.String[] requestParts)
static void
verifyApiVersion(io.netty.handler.codec.http.HttpHeaders headers, java.lang.String expectedVersion)
throws VeniceException if we don't handle the specified api version-
Methods inherited from class com.linkedin.venice.listener.request.RouterRequest
getResourceName, getStoreName, isRetryRequest, isStreamingRequest, setRequestTimeoutInNS, shouldRequestBeTerminatedEarly
-
-
-
-
Method Detail
-
getPartition
public int getPartition()
-
getKeyBytes
public byte[] getKeyBytes()
-
getRequestType
public RequestType getRequestType()
- Specified by:
getRequestType
in classRouterRequest
-
getKeyCount
public int getKeyCount()
- Specified by:
getKeyCount
in classRouterRequest
-
parseGetHttpRequest
public static GetRouterRequest parseGetHttpRequest(io.netty.handler.codec.http.HttpRequest request, java.lang.String[] requestParts)
-
grpcGetRouterRequest
public static GetRouterRequest grpcGetRouterRequest(VeniceClientRequest request)
-
getKeyBytesFromUrlKeyString
public static byte[] getKeyBytesFromUrlKeyString(java.lang.String keyString)
-
verifyApiVersion
public static void verifyApiVersion(io.netty.handler.codec.http.HttpHeaders headers, java.lang.String expectedVersion)
throws VeniceException if we don't handle the specified api version- Parameters:
headers
-
-
-