|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.protobuf.ProtobufUtil
@InterfaceAudience.Private public final class ProtobufUtil
Protobufs utility.
| Field Summary | |
|---|---|
static byte[] |
PB_MAGIC
Magic we put ahead of a serialized protobuf message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] PB_MAGIC
| Method Detail |
|---|
public static byte[] prependPBMagic(byte[] bytes)
PB_MAGIC, to flag what
follows as a protobuf in hbase. Prepend these bytes to all content written to znodes, etc.
bytes - Bytes to decorate
bytes with magic prepended (Creates a new
byte array that is bytes.length plus PB_MAGIC.length.public static boolean isPBMagicPrefix(byte[] bytes)
bytes - Bytes to check.
bytes has PB_MAGIC for a prefix.
public static boolean isPBMagicPrefix(byte[] bytes,
int offset,
int len)
bytes - Bytes to check.
bytes has PB_MAGIC for a prefix.
public static void expectPBMagicPrefix(byte[] bytes)
throws DeserializationException
bytes -
DeserializationException - if we are missing the pb magic prefixpublic static int lengthOfPBMagic()
PB_MAGICpublic static IOException getRemoteException(com.google.protobuf.ServiceException se)
se - ServiceException that wraps IO exception thrown by the server
public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName toServerName(ServerName serverName)
serverName - the ServerName to convert
toServerName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName)public static ServerName toServerName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName proto)
proto - the protocol buffer ServerName to convert
public static HTableDescriptor[] getHTableDescriptorArray(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetTableDescriptorsResponse proto)
proto - the GetTableDescriptorsResponse
public static byte[][] getSplitKeysArray(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateTableRequest proto)
proto - the CreateTableRequest
public static Durability toDurability(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Durability proto)
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Durability toDurability(Durability d)
public static Get toGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get proto)
throws IOException
proto - the protocol buffer Get to convert
IOException
public static Put toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
throws IOException
proto - The protocol buffer MutationProto to convert
IOException
public static Put toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
CellScanner cellScanner)
throws IOException
proto - The protocol buffer MutationProto to convertcellScanner - If non-null, the Cell data that goes with this proto.
IOException
public static Delete toDelete(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
throws IOException
proto - the protocol buffer Mutate to convert
IOException
public static Delete toDelete(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
CellScanner cellScanner)
throws IOException
proto - the protocol buffer Mutate to convertcellScanner - if non-null, the data that goes with this delete.
IOException
public static Append toAppend(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
CellScanner cellScanner)
throws IOException
cellScanner - proto - the protocol buffer Mutate to convert
IOException
public static Mutation toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
throws IOException
proto - the protocol buffer Mutate to convert
IOException
public static Increment toIncrement(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
CellScanner cellScanner)
throws IOException
proto - the protocol buffer Mutate to convert
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan toScan(Scan scan)
throws IOException
scan - the client Scan to convert
IOException
public static Scan toScan(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan proto)
throws IOException
proto - the protocol buffer Scan to convert
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get toGet(Get get)
throws IOException
get - the client Get
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutation(Increment increment,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Builder builder,
long nonce)
increment -
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation)
throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation,
long nonce)
throws IOException
type - mutation -
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Builder builder)
throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Builder builder,
long nonce)
throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutationNoData(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Builder builder)
throws IOException
type - mutation - builder -
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutationNoData(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation)
throws IOException
type - mutation -
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutationNoData(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Builder builder,
long nonce)
throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result toResult(Result result)
result - the client Result to convert
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result toResult(boolean existence)
existence - the client existence to send
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result toResultNoData(Result result)
result - the client Result to convert
public static Result toResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result proto)
proto - the protocol buffer Result to convert
public static Result toResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result proto,
CellScanner scanner)
throws IOException
proto - the protocol buffer Result to convertscanner - Optional cell scanner.
IOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator toComparator(ByteArrayComparable comparator)
comparator - the ByteArrayComparable to convert
public static ByteArrayComparable toComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator proto)
throws IOException
proto - the protocol buffer Comparator to convert
IOException
public static Filter toFilter(org.apache.hadoop.hbase.protobuf.generated.FilterProtos.Filter proto)
throws IOException
proto - the protocol buffer Filter to convert
IOException
public static org.apache.hadoop.hbase.protobuf.generated.FilterProtos.Filter toFilter(Filter filter)
throws IOException
filter - the Filter to convert
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType toDeleteType(KeyValue.Type type)
throws IOException
type -
IOException
public static KeyValue.Type fromDeleteType(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType type)
throws IOException
protocol - buffer DeleteType
IOException
public static Throwable toException(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parameter)
throws IOException
parameter - the protocol buffer Parameter to convert
IOException - if failed to deserialize the parameter
public static Result get(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
byte[] regionName,
Get get)
throws IOException
PayloadCarryingRpcController semantics
client - regionName - get -
IOException
public static Result get(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
byte[] regionName,
Get get,
PayloadCarryingRpcController controller)
throws IOException
client - regionName - get - controller - to use when writing the rpc
IOException
public static Result getRowOrBefore(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
byte[] regionName,
byte[] row,
byte[] family)
throws IOException
PayloadCarryingRpcController
client - regionName - row - family -
IOException
public static Result getRowOrBefore(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
byte[] regionName,
byte[] row,
byte[] family,
PayloadCarryingRpcController payloadCarryingRpcController)
throws IOException
client - regionName - row - family - payloadCarryingRpcController -
IOException
public static boolean bulkLoadHFile(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
List<Pair<byte[],String>> familyPaths,
byte[] regionName,
boolean assignSeqNum)
throws IOException
client - familyPaths - regionName - assignSeqNum -
IOException
public static boolean bulkLoadHFile(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
List<Pair<byte[],String>> familyPaths,
byte[] regionName,
boolean assignSeqNum,
PayloadCarryingRpcController controller)
throws IOException
client - familyPaths - regionName - assignSeqNum - controller -
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execService(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceCall call,
byte[] regionName)
throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execService(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceCall call,
byte[] regionName,
PayloadCarryingRpcController controller)
throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execService(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterService.BlockingInterface client,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceCall call)
throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execRegionServerService(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceCall call)
throws IOException
client - call -
IOException
public static <T extends com.google.protobuf.Service> T newServiceStub(Class<T> service,
com.google.protobuf.RpcChannel channel)
throws Exception
Exception
public static HRegionInfo getRegionInfo(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
byte[] regionName)
throws IOException
admin - regionName -
IOException
public static void closeRegion(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
ServerName server,
byte[] regionName,
boolean transitionInZK)
throws IOException
admin - regionName - transitionInZK -
IOException
public static boolean closeRegion(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
ServerName server,
byte[] regionName,
int versionOfClosingNode,
ServerName destinationServer,
boolean transitionInZK)
throws IOException
admin - regionName - versionOfClosingNode -
IOException
public static void openRegion(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
ServerName server,
HRegionInfo region)
throws IOException
admin - region -
IOException
public static List<HRegionInfo> getOnlineRegions(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin)
throws IOException
admin -
IOException
public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo getServerInfo(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin)
throws IOException
admin -
IOException
public static List<String> getStoreFiles(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
byte[] regionName,
byte[] family)
throws IOException
admin - regionName - family -
IOException
public static void split(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
HRegionInfo hri,
byte[] splitPoint)
throws IOException
admin - hri - splitPoint -
IOException
public static void mergeRegions(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
HRegionInfo region_a,
HRegionInfo region_b,
boolean forcible)
throws IOException
admin - region_a - region_b - forcible - true if do a compulsory merge, otherwise we will only merge
two adjacent regions
IOExceptionpublic static long getTotalRequestsCount(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad rl)
public static byte[] toDelimitedByteArray(com.google.protobuf.Message m)
throws IOException
m - Message to get delimited pb serialization of (with pb magic prefix)
IOExceptionpublic static Permission toPermission(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission proto)
proto - the protobuf Permission
public static TablePermission toTablePermission(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission proto)
proto - the protobuf Permission
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission toPermission(Permission perm)
perm - the client Permission
public static List<Permission.Action> toPermissionActions(List<org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action> protoActions)
protoActions - the list of protobuf Actions
public static Permission.Action toPermissionAction(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action action)
action - the protobuf Action
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action toPermissionAction(Permission.Action action)
action - the client Action
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UserPermission toUserPermission(UserPermission perm)
perm - the client UserPermission
public static UserPermission toUserPermission(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UserPermission proto)
proto - the protobuf UserPermission
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions toUserTablePermissions(com.google.common.collect.ListMultimap<String,TablePermission> perm)
perm - the list of user and table permissions
public static void grant(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
String userShortName,
Permission.Action... actions)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxyuserShortName - the short name of the user to grant permissionsactions - the permissions to be granted
com.google.protobuf.ServiceException
public static void grant(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
String userShortName,
TableName tableName,
byte[] f,
byte[] q,
Permission.Action... actions)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxyuserShortName - the short name of the user to grant permissionstableName - optional table namef - optional column familyq - optional qualifieractions - the permissions to be granted
com.google.protobuf.ServiceException
public static void grant(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
String userShortName,
String namespace,
Permission.Action... actions)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxynamespace - the short name of the user to grant permissionsactions - the permissions to be granted
com.google.protobuf.ServiceException
public static void revoke(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
String userShortName,
Permission.Action... actions)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxyuserShortName - the short name of the user to revoke permissionsactions - the permissions to be revoked
com.google.protobuf.ServiceException
public static void revoke(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
String userShortName,
TableName tableName,
byte[] f,
byte[] q,
Permission.Action... actions)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxyuserShortName - the short name of the user to revoke permissionstableName - optional table namef - optional column familyq - optional qualifieractions - the permissions to be revoked
com.google.protobuf.ServiceException
public static void revoke(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
String userShortName,
String namespace,
Permission.Action... actions)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxyuserShortName - the short name of the user to revoke permissionsnamespace - optional table nameactions - the permissions to be revoked
com.google.protobuf.ServiceException
public static List<UserPermission> getUserPermissions(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxy
com.google.protobuf.ServiceException
public static List<UserPermission> getUserPermissions(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
TableName t)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxyt - optional table name
com.google.protobuf.ServiceException
public static List<UserPermission> getUserPermissions(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface protocol,
byte[] namespace)
throws com.google.protobuf.ServiceException
It's also called by the shell, in case you want to find references.
protocol - the AccessControlService protocol proxynamespace - name of the namespace
com.google.protobuf.ServiceExceptionpublic static com.google.common.collect.ListMultimap<String,TablePermission> toUserTablePermissions(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions proto)
proto - the protobuf UserPermission
public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token toToken(org.apache.hadoop.security.token.Token<AuthenticationTokenIdentifier> token)
token - the Token instance to copy
public static org.apache.hadoop.security.token.Token<AuthenticationTokenIdentifier> toToken(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token proto)
proto - the protobuf Token message
public static String getRegionEncodedName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier regionSpecifier)
throws DoNotRetryIOException
regionSpecifier - the region specifier
DoNotRetryIOException - if the specifier type is unsupportedpublic static ScanMetrics toScanMetrics(byte[] bytes)
public static org.apache.hadoop.hbase.protobuf.generated.MapReduceProtos.ScanMetrics toScanMetrics(ScanMetrics scanMetrics)
public static void toIOException(com.google.protobuf.ServiceException se)
throws IOException
se - the ServiceException instance to convert into an IOException
IOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell toCell(Cell kv)
public static Cell toCell(org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell cell)
public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor toProtoNamespaceDescriptor(NamespaceDescriptor ns)
public static NamespaceDescriptor toNamespaceDescriptor(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor desc)
throws IOException
IOException
public static <T extends com.google.protobuf.Message> T getParsedGenericInstance(Class<?> runtimeClass,
int position,
com.google.protobuf.ByteString b)
throws IOException
runtimeClass - the runtime type of the classposition - the position of the argument in the class declarationb - the ByteString which should be parsed to get the instance created
IOException
public static org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor toCompactionDescriptor(HRegionInfo info,
byte[] family,
List<org.apache.hadoop.fs.Path> inputPaths,
List<org.apache.hadoop.fs.Path> outputPaths,
org.apache.hadoop.fs.Path storeDir)
public static String getShortTextFormat(com.google.protobuf.Message m)
m -
mpublic static TableName toTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName tableNamePB)
public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName toProtoTableName(TableName tableName)
public static TableName[] getTableNameArray(List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> tableNamesList)
public static CellVisibility toCellVisibility(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CellVisibility proto)
proto -
public static CellVisibility toCellVisibility(byte[] protoBytes)
throws DeserializationException
protoBytes -
DeserializationExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CellVisibility toCellVisibility(CellVisibility cellVisibility)
cellVisibility -
public static Authorizations toAuthorizations(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Authorizations proto)
proto -
public static Authorizations toAuthorizations(byte[] protoBytes)
throws DeserializationException
protoBytes -
DeserializationExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Authorizations toAuthorizations(Authorizations authorizations)
authorizations -
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions toUsersAndPermissions(String user,
Permission perms)
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions toUsersAndPermissions(com.google.common.collect.ListMultimap<String,Permission> perms)
public static com.google.common.collect.ListMultimap<String,Permission> toUsersAndPermissions(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions proto)
public static void mergeDelimitedFrom(com.google.protobuf.Message.Builder builder,
InputStream in)
throws IOException
builder - current message builderin - Inputsream with delimited protobuf data
IOException
public static void mergeFrom(com.google.protobuf.Message.Builder builder,
InputStream in,
int size)
throws IOException
builder - current message builderin - InputStream containing protobuf datasize - known size of protobuf data
IOException
public static void mergeFrom(com.google.protobuf.Message.Builder builder,
InputStream in)
throws IOException
builder - current message builderin - InputStream containing protobuf data
IOException
public static void mergeFrom(com.google.protobuf.Message.Builder builder,
com.google.protobuf.ByteString bs)
throws IOException
builder - current message builderbs - ByteString containing the
IOException
public static void mergeFrom(com.google.protobuf.Message.Builder builder,
byte[] b)
throws IOException
builder - current message builderb - byte array
IOException
public static void mergeFrom(com.google.protobuf.Message.Builder builder,
byte[] b,
int offset,
int length)
throws IOException
builder - current message builderb - byte arrayoffset - length -
IOExceptionpublic static ReplicationLoadSink toReplicationLoadSink(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink cls)
public static ReplicationLoadSource toReplicationLoadSource(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource cls)
public static List<ReplicationLoadSource> toReplicationLoadSourceList(List<org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> clsList)
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.VersionInfo getVersionInfo()
public static List<SecurityCapability> toSecurityCapabilityList(List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability> capabilities)
capabilities - capabilities returned in the SecurityCapabilitiesResponse message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||