Class GetRouterRequest
java.lang.Object
com.linkedin.venice.listener.request.RouterRequest
com.linkedin.venice.listener.request.GetRouterRequest
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
Modifier and TypeMethodDescriptionbyte[]
static byte[]
getKeyBytesFromUrlKeyString
(String keyString) int
int
static GetRouterRequest
grpcGetRouterRequest
(VeniceClientRequest request) static GetRouterRequest
parseGetHttpRequest
(io.netty.handler.codec.http.HttpRequest request, String[] requestParts) static void
verifyApiVersion
(io.netty.handler.codec.http.HttpHeaders headers, String expectedVersion) throws VeniceException if we don't handle the specified api versionMethods inherited from class com.linkedin.venice.listener.request.RouterRequest
getResourceName, getStoreName, isRetryRequest, isStreamingRequest, setRequestTimeoutInNS, shouldRequestBeTerminatedEarly
-
Method Details
-
getPartition
public int getPartition() -
getKeyBytes
public byte[] getKeyBytes() -
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, String[] requestParts) -
grpcGetRouterRequest
-
getKeyBytesFromUrlKeyString
-
verifyApiVersion
public static void verifyApiVersion(io.netty.handler.codec.http.HttpHeaders headers, String expectedVersion) throws VeniceException if we don't handle the specified api version- Parameters:
headers
-
-