@Private
@Deprecated
public class ProtobufHelper
extends java.lang.Object
ShadedProtobufHelper.| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.thirdparty.protobuf.ByteString |
getByteString(byte[] bytes) |
Deprecated.
Get the byte string of a non-null byte array.
|
static org.apache.hadoop.thirdparty.protobuf.ByteString |
getFixedByteString(java.lang.String key) |
Deprecated.
Get the ByteString for frequently used fixed and small set strings.
|
static org.apache.hadoop.thirdparty.protobuf.ByteString |
getFixedByteString(Text key) |
Deprecated.
Get the ByteString for frequently used fixed and small set strings.
|
static java.io.IOException |
getRemoteException(com.google.protobuf.ServiceException se) |
Deprecated.
|
static java.io.IOException |
getRemoteException(org.apache.hadoop.thirdparty.protobuf.ServiceException se) |
Deprecated.
Return the IOException thrown by the remote server wrapped in
ServiceException as cause.
|
static org.apache.hadoop.security.proto.SecurityProtos.TokenProto |
protoFromToken(Token<?> tok) |
Deprecated.
Create a
TokenProto instance
from a hadoop token. |
static Token<? extends TokenIdentifier> |
tokenFromProto(org.apache.hadoop.security.proto.SecurityProtos.TokenProto tokenProto) |
Deprecated.
Get a token from a TokenProto payload.
|
public static java.io.IOException getRemoteException(org.apache.hadoop.thirdparty.protobuf.ServiceException se)
se - ServiceException that wraps IO exception thrown by the server@Deprecated public static java.io.IOException getRemoteException(com.google.protobuf.ServiceException se)
se - ServiceException that wraps IO exception thrown by the serverpublic static org.apache.hadoop.thirdparty.protobuf.ByteString getFixedByteString(Text key)
key - stringpublic static org.apache.hadoop.thirdparty.protobuf.ByteString getFixedByteString(java.lang.String key)
key - stringpublic static org.apache.hadoop.thirdparty.protobuf.ByteString getByteString(byte[] bytes)
bytes - bytes to convert.public static Token<? extends TokenIdentifier> tokenFromProto(org.apache.hadoop.security.proto.SecurityProtos.TokenProto tokenProto)
tokenProto - marshalled tokenpublic static org.apache.hadoop.security.proto.SecurityProtos.TokenProto protoFromToken(Token<?> tok)
TokenProto instance
from a hadoop token.
This builds and caches the fields
(identifier, password, kind, service) but not
renewer or any payload.tok - tokenCopyright © 2008–2025 Apache Software Foundation. All rights reserved.