@InterfaceAudience.Private public final class ProtobufUtil extends Object
ProtobufUtil| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoRequest |
buildGetServerInfoRequest()
Create a new GetServerInfoRequest
|
static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier |
buildRegionSpecifier(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType type,
byte[] value)
Convert a byte array to a protocol buffer RegionSpecifier
|
static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type |
createProtosSnapShotDescType(SnapshotType type)
Creates
HBaseProtos.SnapshotDescription.Type
from SnapshotType |
static void |
expectPBMagicPrefix(byte[] bytes) |
static org.apache.hadoop.hbase.KeyValue.Type |
fromDeleteType(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType type)
Convert a protocol buffer DeleteType to delete KeyValue type.
|
static IOException |
getRemoteException(com.google.protobuf.ServiceException se)
Return the IOException thrown by the remote server wrapped in
ServiceException as cause.
|
static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo |
getServerInfo(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin)
A helper to get the info of a region server using admin protocol.
|
static IOException |
getServiceException(org.apache.hbase.thirdparty.com.google.protobuf.ServiceException e)
Return the Exception thrown by the remote server wrapped in
ServiceException as cause.
|
static IOException |
handleRemoteException(Exception e)
Like
getRemoteException(ServiceException) but more generic, able to handle more than
just ServiceException. |
static boolean |
isPBMagicPrefix(byte[] bytes) |
static boolean |
isPBMagicPrefix(byte[] bytes,
int offset,
int len) |
static int |
lengthOfPBMagic() |
static void |
mergeFrom(com.google.protobuf.Message.Builder builder,
byte[] b)
This version of protobuf's mergeFrom avoids the hard-coded 64MB limit for decoding
buffers when working with byte arrays
|
static void |
mergeFrom(com.google.protobuf.Message.Builder builder,
byte[] b,
int offset,
int length)
This version of protobuf's mergeFrom avoids the hard-coded 64MB limit for decoding
buffers when working with byte arrays
|
static <T extends com.google.protobuf.Service> |
newServiceStub(Class<T> service,
com.google.protobuf.RpcChannel channel) |
static byte[] |
prependPBMagic(byte[] bytes)
Prepend the passed bytes with four bytes of magic,
ProtobufMagic.PB_MAGIC,
to flag what follows as a protobuf in hbase. |
static Append |
toAppend(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
org.apache.hadoop.hbase.CellScanner cellScanner)
Convert a protocol buffer Mutate to an Append
|
static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell |
toCell(org.apache.hadoop.hbase.Cell kv) |
static org.apache.hadoop.hbase.Cell |
toCell(org.apache.hadoop.hbase.ExtendedCellBuilder cellBuilder,
org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell cell) |
static org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator |
toComparator(org.apache.hadoop.hbase.filter.ByteArrayComparable comparator)
Convert a ByteArrayComparable to a protocol buffer Comparator
|
static org.apache.hadoop.hbase.filter.ByteArrayComparable |
toComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator proto)
Convert a protocol buffer Comparator to a ByteArrayComparable
|
static Consistency |
toConsistency(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Consistency consistency) |
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Consistency |
toConsistency(Consistency consistency) |
static Delete |
toDelete(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
Convert a protocol buffer Mutate to a Delete
|
static Delete |
toDelete(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
org.apache.hadoop.hbase.CellScanner cellScanner)
Convert a protocol buffer Mutate to a Delete
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType |
toDeleteType(org.apache.hadoop.hbase.KeyValue.Type type)
Convert a delete KeyValue type to protocol buffer DeleteType.
|
static Durability |
toDurability(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Durability proto)
Convert a protobuf Durability into a client Durability
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.Durability |
toDurability(Durability d)
Convert a client Durability into a protbuf Durability
|
static Throwable |
toException(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parameter)
Convert a stringified protocol buffer exception Parameter to a Java Exception
|
static org.apache.hadoop.hbase.protobuf.generated.FilterProtos.Filter |
toFilter(Filter filter)
Convert a client Filter to a protocol buffer Filter
|
static Filter |
toFilter(org.apache.hadoop.hbase.protobuf.generated.FilterProtos.Filter proto)
Convert a protocol buffer Filter to a client Filter
|
static Get |
toGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get proto)
Convert a protocol buffer Get to a client Get
|
static Get |
toGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
org.apache.hadoop.hbase.CellScanner cellScanner)
Convert a protocol buffer Mutate to a Get.
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get |
toGet(Get get)
Create a protocol buffer Get based on a client Get.
|
static org.apache.hadoop.hbase.rsgroup.RSGroupInfo |
toGroupInfo(org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo proto) |
static Increment |
toIncrement(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
org.apache.hadoop.hbase.CellScanner cellScanner)
Convert a protocol buffer Mutate to an Increment
|
static void |
toIOException(com.google.protobuf.ServiceException se)
Unwraps an exception from a protobuf service into the underlying (expected) IOException.
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto |
toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation) |
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) |
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) |
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto |
toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation,
long nonce)
Create a protocol buffer Mutate based on a client Mutation
|
static Mutation |
toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
Convert a MutateRequest to Mutation
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto |
toMutationNoData(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation)
Create a protocol buffer MutationProto based on a client Mutation.
|
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)
Create a protocol buffer MutationProto based on a client Mutation.
|
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) |
static org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName |
toProtoTableName(org.apache.hadoop.hbase.TableName tableName) |
static Put |
toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
Convert a protocol buffer Mutate to a Put.
|
static Put |
toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
org.apache.hadoop.hbase.CellScanner cellScanner)
Convert a protocol buffer Mutate to a Put.
|
static Scan.ReadType |
toReadType(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.ReadType readType) |
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.ReadType |
toReadType(Scan.ReadType readType) |
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result |
toResult(boolean existence,
boolean stale)
Convert a client Result to a protocol buffer Result
|
static Result |
toResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result proto)
Convert a protocol buffer Result to a client Result
|
static Result |
toResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result proto,
org.apache.hadoop.hbase.CellScanner scanner)
Convert a protocol buffer Result to a client Result
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result |
toResult(Result result)
Convert a client Result to a protocol buffer Result
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result |
toResultNoData(Result result)
Convert a client Result to a protocol buffer Result.
|
static Scan |
toScan(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan proto)
Convert a protocol buffer Scan to a client Scan
|
static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan |
toScan(Scan scan)
Convert a client Scan to a protocol buffer Scan
|
static ScanMetrics |
toScanMetrics(byte[] bytes) |
static org.apache.hadoop.hbase.ServerName |
toServerName(byte[] data)
Get a ServerName from the passed in data bytes.
|
static org.apache.hadoop.hbase.ServerName |
toServerName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName proto)
Convert a protocol buffer ServerName to a ServerName
|
static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName |
toServerName(org.apache.hadoop.hbase.ServerName serverName)
Convert a ServerName to a protocol buffer ServerName
|
static org.apache.hadoop.hbase.TableName |
toTableName(org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName tableNamePB) |
static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange |
toTimeRange(org.apache.hadoop.hbase.io.TimeRange timeRange) |
public static byte[] prependPBMagic(byte[] bytes)
ProtobufMagic.PB_MAGIC,
to flag what follows as a protobuf in hbase. Prepend these bytes to all content written to
znodes, etc.bytes - Bytes to decoratebytes with magic prepended (Creates a new
byte array that is bytes.length plus ProtobufMagic.PB_MAGIC.length.public static boolean isPBMagicPrefix(byte[] bytes)
bytes - Bytes to check.bytes has ProtobufMagic.PB_MAGIC for a prefix.public static boolean isPBMagicPrefix(byte[] bytes,
int offset,
int len)
bytes - Bytes to check.offset - offset to start atlen - length to usebytes has ProtobufMagic.PB_MAGIC for a prefix.public static void expectPBMagicPrefix(byte[] bytes)
throws org.apache.hadoop.hbase.exceptions.DeserializationException
bytes - bytes to checkorg.apache.hadoop.hbase.exceptions.DeserializationException - if we are missing the pb magic prefixpublic static int lengthOfPBMagic()
ProtobufMagic.lengthOfPBMagic()public static IOException getRemoteException(com.google.protobuf.ServiceException se)
se - ServiceException that wraps IO exception thrown by the serverpublic static IOException getServiceException(org.apache.hbase.thirdparty.com.google.protobuf.ServiceException e)
e - ServiceException that wraps IO exception thrown by the serverpublic static IOException handleRemoteException(Exception e)
getRemoteException(ServiceException) but more generic, able to handle more than
just ServiceException. Prefer this method to
getRemoteException(ServiceException) because trying to
contain direct protobuf references.e - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName toServerName(org.apache.hadoop.hbase.ServerName serverName)
serverName - the ServerName to converttoServerName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName)public static org.apache.hadoop.hbase.ServerName toServerName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName proto)
proto - the protocol buffer ServerName to convertpublic 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 convertIOExceptionpublic static Consistency toConsistency(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Consistency consistency)
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Consistency toConsistency(Consistency consistency)
public static Put toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto) throws IOException
proto - The protocol buffer MutationProto to convertIOExceptionpublic static Put toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto, org.apache.hadoop.hbase.CellScanner cellScanner) throws IOException
proto - The protocol buffer MutationProto to convertcellScanner - If non-null, the Cell data that goes with this proto.IOExceptionpublic static Delete toDelete(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto) throws IOException
proto - the protocol buffer Mutate to convertIOExceptionpublic static Delete toDelete(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto, org.apache.hadoop.hbase.CellScanner cellScanner) throws IOException
proto - the protocol buffer Mutate to convertcellScanner - if non-null, the data that goes with this delete.IOExceptionpublic static Append toAppend(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto, org.apache.hadoop.hbase.CellScanner cellScanner) throws IOException
cellScanner - proto - the protocol buffer Mutate to convertIOExceptionpublic static Increment toIncrement(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto, org.apache.hadoop.hbase.CellScanner cellScanner) throws IOException
proto - the protocol buffer Mutate to convertIOExceptionpublic static Mutation toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto) throws IOException
proto - the protocol buffer Mutate to convertIOExceptionpublic static Get toGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto, org.apache.hadoop.hbase.CellScanner cellScanner) throws IOException
proto - the protocol buffer Mutate to convert.cellScanner - IOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.ReadType toReadType(Scan.ReadType readType)
public static Scan.ReadType toReadType(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.ReadType readType)
public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan toScan(Scan scan) throws IOException
scan - the client Scan to convertIOExceptionpublic static Scan toScan(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan proto) throws IOException
proto - the protocol buffer Scan to convertIOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get toGet(Get get) throws IOException
get - the client GetIOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto toMutation(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType type,
Mutation mutation)
throws IOException
IOExceptionpublic 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 - IOExceptionpublic 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
IOExceptionpublic 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
IOExceptionpublic 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 - IOExceptionpublic 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 - IOExceptionpublic 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 convertpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result toResult(boolean existence,
boolean stale)
existence - the client existence to sendpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result toResultNoData(Result result)
result - the client Result to convertpublic static Result toResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result proto)
proto - the protocol buffer Result to convertpublic static Result toResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result proto, org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.filter.ByteArrayComparable comparator)
comparator - the ByteArrayComparable to convertpublic static org.apache.hadoop.hbase.filter.ByteArrayComparable toComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator proto)
throws IOException
proto - the protocol buffer Comparator to convertIOExceptionpublic static Filter toFilter(org.apache.hadoop.hbase.protobuf.generated.FilterProtos.Filter proto) throws IOException
proto - the protocol buffer Filter to convertIOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.FilterProtos.Filter toFilter(Filter filter) throws IOException
filter - the Filter to convertIOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType toDeleteType(org.apache.hadoop.hbase.KeyValue.Type type)
throws IOException
type - IOExceptionpublic static org.apache.hadoop.hbase.KeyValue.Type fromDeleteType(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType type)
throws IOException
type - The DeleteTypeIOExceptionpublic static Throwable toException(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parameter) throws IOException
parameter - the protocol buffer Parameter to convertIOException - if failed to deserialize the parameterpublic static <T extends com.google.protobuf.Service> T newServiceStub(Class<T> service, com.google.protobuf.RpcChannel channel) throws Exception
Exceptionpublic static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo getServerInfo(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin)
throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoRequest buildGetServerInfoRequest()
public static ScanMetrics toScanMetrics(byte[] bytes)
public static void toIOException(com.google.protobuf.ServiceException se)
throws IOException
se - the ServiceException instance to convert into an IOExceptionIOExceptionpublic static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell toCell(org.apache.hadoop.hbase.Cell kv)
public static org.apache.hadoop.hbase.Cell toCell(org.apache.hadoop.hbase.ExtendedCellBuilder cellBuilder,
org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell cell)
public static org.apache.hadoop.hbase.TableName toTableName(org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName tableNamePB)
public static org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName toProtoTableName(org.apache.hadoop.hbase.TableName tableName)
public static void mergeFrom(com.google.protobuf.Message.Builder builder,
byte[] b)
throws IOException
builder - current message builderb - byte arrayIOExceptionpublic 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 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type createProtosSnapShotDescType(SnapshotType type)
HBaseProtos.SnapshotDescription.Type
from SnapshotTypetype - the SnapshotDescription typepublic static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier buildRegionSpecifier(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType type,
byte[] value)
type - the region specifier typevalue - the region specifier byte array valuepublic static org.apache.hadoop.hbase.ServerName toServerName(byte[] data)
throws org.apache.hadoop.hbase.exceptions.DeserializationException
data - Data with a serialize server name in it; can handle the old style
servername where servername was host and port. Works too with data that
begins w/ the pb 'PBUF' magic and that is then followed by a protobuf that
has a serialized ServerName in it.data is null else converts passed data
to a ServerName instance.org.apache.hadoop.hbase.exceptions.DeserializationExceptionpublic static org.apache.hadoop.hbase.rsgroup.RSGroupInfo toGroupInfo(org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo proto)
public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange toTimeRange(org.apache.hadoop.hbase.io.TimeRange timeRange)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.