|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.protobuf.ResponseConverter
@InterfaceAudience.Private public final class ResponseConverter
Helper utility to build protocol buffer responses, or retrieve data from protocol buffer responses.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public static MultiResponse getResults(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiRequest request, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiResponse response, CellScanner cells) throws IOException
request
- the protocol buffer MultiResponse to convertcells
- Cells to go with the passed in proto
. Can be null.
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException.Builder buildActionResult(Throwable t)
t
-
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException.Builder buildActionResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result r)
r
-
public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair buildException(Throwable t)
t
-
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GetUserPermissionsResponse buildGetUserPermissionsResponse(List<UserPermission> permissions)
public static byte[][] getRegions(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.RollWALWriterResponse proto)
proto
- the RollLogWriterResponse
public static List<HRegionInfo> getRegionInfos(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetOnlineRegionResponse proto)
proto
- the GetOnlineRegionResponse
public static RegionOpeningState getRegionOpeningState(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.OpenRegionResponse proto)
proto
- the OpenRegionResponse
public static List<RegionOpeningState> getRegionOpeningStateList(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.OpenRegionResponse proto)
proto
- the OpenRegionResponse
public static boolean isClosed(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CloseRegionResponse proto)
proto
- the CloseRegionResponse
public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse buildGetServerInfoResponse(ServerName serverName, int webuiPort)
serverName
- webuiPort
-
public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetOnlineRegionResponse buildGetOnlineRegionResponse(List<HRegionInfo> regions)
regions
-
public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.RunCatalogScanResponse buildRunCatalogScanResponse(int numCleaned)
public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.EnableCatalogJanitorResponse buildEnableCatalogJanitorResponse(boolean prevValue)
public static org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.GetLastFlushedSequenceIdResponse buildGetLastFlushedSequenceIdResponse(long seqId)
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(com.google.protobuf.RpcController controller) throws IOException
controller
- the controller instance provided by the client when calling the service
IOException
public static Result[] getResults(CellScanner cellScanner, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanResponse response) throws IOException
cellScanner
- response
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |