public class PBHelper extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto |
convert(BalancerBandwidthCommand bbCmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto |
convert(org.apache.hadoop.hdfs.protocol.Block b) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto |
convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock b) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto |
convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto |
convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s) |
static HdfsConstants.DatanodeReportType |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto t) |
static long[] |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto res) |
static HdfsConstants.SafeModeAction |
convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto a) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto |
convert(org.apache.hadoop.fs.ContentSummary cs) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto |
convert(CorruptFileBlocks c) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto |
convert(org.apache.hadoop.util.DataChecksum.Type type) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto |
convert(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey bet) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto |
convert(org.apache.hadoop.hdfs.protocol.DatanodeID dn) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] |
convert(org.apache.hadoop.hdfs.protocol.DatanodeID[] did) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState |
convert(DatanodeInfo.AdminStates inAs) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto |
convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo info) |
static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> |
convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos) |
static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> |
convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos,
int startIdx)
Copy from
dnInfos to a target of list of same size starting at
startIdx . |
static BalancerBandwidthCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto balancerCmd) |
static org.apache.hadoop.hdfs.server.protocol.BlockCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto blkCmd) |
static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto recoveryCmd) |
static org.apache.hadoop.hdfs.server.protocol.DatanodeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto proto) |
static org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto proto) |
static DatanodeStorage |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto s) |
static org.apache.hadoop.hdfs.server.protocol.FinalizeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto finalizeCmd) |
static org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto keyUpdateCmd) |
static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto s) |
static ReceivedDeletedBlockInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto |
convert(org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration registration) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto |
convert(DatanodeStorage s) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto |
convert(org.apache.hadoop.hdfs.protocol.DirectoryListing d) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto |
convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto |
convert(org.apache.hadoop.hdfs.protocol.ExtendedBlock b) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.FinalizeCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto |
convert(org.apache.hadoop.fs.permission.FsPermission p) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto |
convert(org.apache.hadoop.fs.FsServerDefaults fs) |
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto |
convert(HdfsConstants.DatanodeReportType t) |
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto |
convert(HdfsConstants.SafeModeAction a) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto |
convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus fs) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] |
convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] fs) |
static org.apache.hadoop.hdfs.security.token.block.BlockKey |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto k) |
static org.apache.hadoop.hdfs.protocol.Block |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto b) |
static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto blocks) |
static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto b) |
static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto s) |
static org.apache.hadoop.util.DataChecksum.Type |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto type) |
static org.apache.hadoop.fs.ContentSummary |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto cs) |
static CorruptFileBlocks |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto c) |
static org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto bet) |
static org.apache.hadoop.hdfs.protocol.DatanodeID |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto dn) |
static org.apache.hadoop.hdfs.protocol.DatanodeID[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] did) |
static DatanodeInfo.AdminStates |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState adminState) |
static org.apache.hadoop.hdfs.protocol.DatanodeInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto di) |
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] di) |
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfosProto datanodeInfosProto) |
static org.apache.hadoop.hdfs.protocol.DirectoryListing |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto dl) |
static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto keys) |
static org.apache.hadoop.hdfs.protocol.ExtendedBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto eb) |
static org.apache.hadoop.fs.permission.FsPermission |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto p) |
static org.apache.hadoop.fs.FsServerDefaults |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto fs) |
static org.apache.hadoop.hdfs.protocol.HdfsFileStatus |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto fs) |
static org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] fs) |
static org.apache.hadoop.hdfs.protocol.LocatedBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto proto) |
static org.apache.hadoop.hdfs.protocol.LocatedBlocks |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto lb) |
static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto cmd) |
static HdfsServerConstants.NamenodeRole |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto role) |
static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto reg) |
static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto info) |
static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto b) |
static RemoteEditLogManifest |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto manifest) |
static RemoteEditLog |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto l) |
static HdfsServerConstants.ReplicaState |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto state) |
static org.apache.hadoop.hdfs.server.common.StorageInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto |
convert(HdfsServerConstants.NamenodeRole role) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto |
convert(HdfsServerConstants.ReplicaState state) |
static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> |
convert(int flag) |
static org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto |
convert(org.apache.hadoop.hdfs.server.protocol.JournalInfo j)
Method used for converting
JournalProtocolProtos.JournalInfoProto sent from Namenode
to Journal receivers to NamenodeRegistration . |
static org.apache.hadoop.hdfs.server.protocol.JournalInfo |
convert(org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto info) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand cmd) |
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
convert(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> list) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto |
convert(org.apache.hadoop.hdfs.protocol.LocatedBlock b) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto |
convert(org.apache.hadoop.hdfs.protocol.LocatedBlocks lb) |
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto |
convert(long[] fsStats) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto |
convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto |
convert(org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat hb) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto |
convert(ReceivedDeletedBlockInfo receivedDeletedBlockInfo) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto |
convert(RemoteEditLog log) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto |
convert(RemoteEditLogManifest manifest) |
static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> |
convert(org.apache.hadoop.security.proto.SecurityProtos.TokenProto blockToken) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto |
convert(org.apache.hadoop.hdfs.server.common.StorageInfo info) |
static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto |
convert(StorageReport r) |
static org.apache.hadoop.security.proto.SecurityProtos.TokenProto |
convert(org.apache.hadoop.security.token.Token<?> tok) |
static org.apache.hadoop.hdfs.security.token.block.BlockKey[] |
convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list) |
static int |
convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto |
convertDatanodeInfo(org.apache.hadoop.hdfs.protocol.DatanodeInfo di) |
static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
convertDelegationToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto blockToken) |
static org.apache.hadoop.hdfs.protocol.LocatedBlock[] |
convertLocatedBlock(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb) |
static List<org.apache.hadoop.hdfs.protocol.LocatedBlock> |
convertLocatedBlock(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb) |
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] |
convertLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock[] lb) |
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> |
convertLocatedBlock2(List<org.apache.hadoop.hdfs.protocol.LocatedBlock> lb) |
static com.google.protobuf.ByteString |
getByteString(byte[] bytes) |
static InputStream |
vintPrefixed(InputStream input) |
public static com.google.protobuf.ByteString getByteString(byte[] bytes)
public static HdfsServerConstants.NamenodeRole convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto role)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto convert(HdfsServerConstants.NamenodeRole role)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto convert(org.apache.hadoop.hdfs.server.common.StorageInfo info)
public static org.apache.hadoop.hdfs.server.common.StorageInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg)
public static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto reg)
public static org.apache.hadoop.hdfs.protocol.DatanodeID convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto dn)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto convert(org.apache.hadoop.hdfs.protocol.DatanodeID dn)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] convert(org.apache.hadoop.hdfs.protocol.DatanodeID[] did)
public static org.apache.hadoop.hdfs.protocol.DatanodeID[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] did)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto convert(org.apache.hadoop.hdfs.protocol.Block b)
public static org.apache.hadoop.hdfs.protocol.Block convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto b)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk)
public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto b)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks)
public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto blocks)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key)
public static org.apache.hadoop.hdfs.security.token.block.BlockKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto k)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys)
public static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto keys)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s)
public static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto s)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto convert(RemoteEditLog log)
public static RemoteEditLog convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto l)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto convert(RemoteEditLogManifest manifest)
public static RemoteEditLogManifest convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto manifest)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointCommandProto convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd)
public static org.apache.hadoop.hdfs.security.token.block.BlockKey[] convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list)
public static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto info)
public static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto cmd)
public static org.apache.hadoop.hdfs.protocol.ExtendedBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto eb)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto convert(org.apache.hadoop.hdfs.protocol.ExtendedBlock b)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock b)
public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto b)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState convert(DatanodeInfo.AdminStates inAs)
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto di)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convertDatanodeInfo(org.apache.hadoop.hdfs.protocol.DatanodeInfo di)
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] di)
public static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos)
public static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos, int startIdx)
dnInfos
to a target of list of same size starting at
startIdx
.public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> list)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo info)
public static DatanodeInfo.AdminStates convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState adminState)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto convert(org.apache.hadoop.hdfs.protocol.LocatedBlock b)
public static org.apache.hadoop.hdfs.protocol.LocatedBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto proto)
public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto convert(org.apache.hadoop.security.token.Token<?> tok)
public static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> convert(org.apache.hadoop.security.proto.SecurityProtos.TokenProto blockToken)
public static org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> convertDelegationToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto blockToken)
public static HdfsServerConstants.ReplicaState convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto state)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto convert(HdfsServerConstants.ReplicaState state)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration registration)
public static org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto proto)
public static org.apache.hadoop.hdfs.server.protocol.DatanodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto proto)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto convert(BalancerBandwidthCommand bbCmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto convert(org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.FinalizeCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockCommand cmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand)
public static org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto keyUpdateCmd)
public static org.apache.hadoop.hdfs.server.protocol.FinalizeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto finalizeCmd)
public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto recoveryCmd)
public static org.apache.hadoop.hdfs.server.protocol.BlockCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto blkCmd)
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfosProto datanodeInfosProto)
public static BalancerBandwidthCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto balancerCmd)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto convert(ReceivedDeletedBlockInfo receivedDeletedBlockInfo)
public static ReceivedDeletedBlockInfo convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] convertLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock[] lb)
public static org.apache.hadoop.hdfs.protocol.LocatedBlock[] convertLocatedBlock(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb)
public static List<org.apache.hadoop.hdfs.protocol.LocatedBlock> convertLocatedBlock(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb)
public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> convertLocatedBlock2(List<org.apache.hadoop.hdfs.protocol.LocatedBlock> lb)
public static org.apache.hadoop.hdfs.protocol.LocatedBlocks convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto lb)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto convert(org.apache.hadoop.hdfs.protocol.LocatedBlocks lb)
public static org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto bet)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto convert(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey bet)
public static org.apache.hadoop.fs.FsServerDefaults convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto fs)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto convert(org.apache.hadoop.fs.FsServerDefaults fs)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto convert(org.apache.hadoop.fs.permission.FsPermission p)
public static org.apache.hadoop.fs.permission.FsPermission convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto p)
public static int convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag)
public static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> convert(int flag)
public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto fs)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus fs)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] fs)
public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] fs)
public static org.apache.hadoop.hdfs.protocol.DirectoryListing convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto dl)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto convert(org.apache.hadoop.hdfs.protocol.DirectoryListing d)
public static long[] convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto res)
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto convert(long[] fsStats)
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto convert(HdfsConstants.DatanodeReportType t)
public static HdfsConstants.DatanodeReportType convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto t)
public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto convert(HdfsConstants.SafeModeAction a)
public static HdfsConstants.SafeModeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto a)
public static CorruptFileBlocks convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto c)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto convert(CorruptFileBlocks c)
public static org.apache.hadoop.fs.ContentSummary convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto cs)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto convert(org.apache.hadoop.fs.ContentSummary cs)
public static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto s)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto convert(org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat hb)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto convert(DatanodeStorage s)
public static DatanodeStorage convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto s)
public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.StorageReportProto convert(StorageReport r)
public static org.apache.hadoop.hdfs.server.protocol.JournalInfo convert(org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto info)
public static org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto convert(org.apache.hadoop.hdfs.server.protocol.JournalInfo j)
JournalProtocolProtos.JournalInfoProto
sent from Namenode
to Journal receivers to NamenodeRegistration
.public static org.apache.hadoop.util.DataChecksum.Type convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto type)
public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto convert(org.apache.hadoop.util.DataChecksum.Type type)
public static InputStream vintPrefixed(InputStream input) throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.