@InterfaceAudience.Private public final class ResponseConverter extends Object
public static SingleResponse getResult(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest request, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateResponse response, CellScanner cells) throws IOException
IOException
public static MultiResponse getResults(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiRequest request, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiResponse response, CellScanner cells) throws IOException
request
- the original protocol buffer MultiRequestresponse
- the protocol buffer MultiResponse to convertcells
- Cells to go with the passed in proto
. Can be null.IOException
public static MultiResponse getResults(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiRequest request, Map<Integer,Integer> rowMutationsIndexMap, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiResponse response, CellScanner cells) throws IOException
request
- the original protocol buffer MultiRequestrowMutationsIndexMap
- Used to support RowMutations in batchresponse
- the protocol buffer MultiResponse to convertcells
- Cells to go with the passed in proto
. Can be null.IOException
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ResultOrException.Builder buildActionResult(Throwable t)
t
- public static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ResultOrException.Builder buildActionResult(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.Result r)
r
- public static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameBytesPair buildException(Throwable t)
t
- public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.HasPermissionResponse buildHasPermissionResponse(boolean hasPermission)
public static List<RegionInfo> getRegionInfos(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetOnlineRegionResponse proto)
proto
- the GetOnlineRegionResponsepublic static boolean isClosed(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.CloseRegionResponse proto)
proto
- the CloseRegionResponsepublic static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetServerInfoResponse buildGetServerInfoResponse(ServerName serverName, int webuiPort)
serverName
- webuiPort
- public static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetOnlineRegionResponse buildGetOnlineRegionResponse(List<RegionInfo> regions)
regions
- public static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RunCatalogScanResponse buildRunCatalogScanResponse(int numCleaned)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.EnableCatalogJanitorResponse buildEnableCatalogJanitorResponse(boolean prevValue)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RunCleanerChoreResponse buildRunCleanerChoreResponse(boolean ran)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.GetLastFlushedSequenceIdResponse buildGetLastFlushedSequenceIdResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionStoreSequenceIds ids)
public static void setControllerException(com.google.protobuf.RpcController controller, IOException ioe)
controller
- the controller instance provided by the client when calling the serviceioe
- the exception encountered@Nullable public static IOException getControllerException(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller) throws IOException
controller
- the controller instance provided by the client when calling the serviceIOException
public static Result[] getResults(CellScanner cellScanner, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse response) throws IOException
cellScanner
- response
- IOException
public static Map<String,Long> getScanMetrics(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse response)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ClearRegionBlockCacheResponse buildClearRegionBlockCacheResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.CacheEvictionStats cacheEvictionStats)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.