use of org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetStoreFileRequest in project hbase by apache.
the class ProtobufUtil method buildGetStoreFileRequest.
/**
* Create a protocol buffer GetStoreFileRequest for a given region name
*
* @param regionName the name of the region to get info
* @param family the family to get store file list
* @return a protocol buffer GetStoreFileRequest
*/
public static GetStoreFileRequest buildGetStoreFileRequest(final byte[] regionName, final byte[] family) {
GetStoreFileRequest.Builder builder = GetStoreFileRequest.newBuilder();
RegionSpecifier region = RequestConverter.buildRegionSpecifier(RegionSpecifierType.REGION_NAME, regionName);
builder.setRegion(region);
builder.addFamily(UnsafeByteOperations.unsafeWrap(family));
return builder.build();
}
Aggregations