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.
  • Method Details

    • getPartition

      public int getPartition()
    • getKeyBytes

      public byte[] getKeyBytes()
    • getRequestType

      public RequestType getRequestType()
      Specified by:
      getRequestType in class RouterRequest
    • getKeyCount

      public int getKeyCount()
      Specified by:
      getKeyCount in class RouterRequest
    • parseGetHttpRequest

      public static GetRouterRequest parseGetHttpRequest(io.netty.handler.codec.http.HttpRequest request, String[] requestParts)
    • grpcGetRouterRequest

      public static GetRouterRequest grpcGetRouterRequest(VeniceClientRequest request)
    • getKeyBytesFromUrlKeyString

      public static byte[] getKeyBytesFromUrlKeyString(String keyString)
    • 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 -