org.apache.hadoop.hdfs.protocolPB
Class PBHelper

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocolPB.PBHelper

public class PBHelper
extends Object

Utilities for converting protobuf classes to and from implementation classes and other helper utilities to help in dealing with protobuf. Note that when converting from an internal type to protobuf type, the converter never return null for protobuf type. The check for internal type being null must be done before calling the convert() method.


Method Summary
static org.apache.hadoop.fs.permission.FsAction convert(org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto.FsActionProto v)
           
static org.apache.hadoop.fs.permission.AclStatus convert(org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto e)
           
static org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto convert(org.apache.hadoop.fs.permission.AclStatus e)
           
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.DatanodeProtocolProtos.BlockIdCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockIdCommand 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.BlockStoragePolicyProto convert(org.apache.hadoop.hdfs.protocol.BlockStoragePolicy policy)
           
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.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto convert(CacheDirectiveEntry entry)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto convert(CacheDirectiveInfo.Expiration expiration)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto convert(CacheDirectiveInfo info)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto convert(CacheDirectiveStats stats)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto convert(CachePoolEntry entry)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto convert(CachePoolInfo info)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto convert(CachePoolStats stats)
           
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 org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto convert(org.apache.hadoop.crypto.CipherOption option)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherSuiteProto convert(org.apache.hadoop.crypto.CipherSuite suite)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ZoneEncryptionInfoProto convert(org.apache.hadoop.crypto.CipherSuite suite, org.apache.hadoop.crypto.CryptoProtocolVersion version, String keyName)
           
static CacheDirectiveEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto proto)
           
static CacheDirectiveInfo.Expiration convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto proto)
           
static CacheDirectiveInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto proto)
           
static CacheDirectiveStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto proto)
           
static CachePoolEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto proto)
           
static CachePoolInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto proto)
           
static CachePoolStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto proto)
           
static HdfsConstants.DatanodeReportType convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto t)
           
static org.apache.hadoop.hdfs.inotify.EventsList convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetEditsFromTxidResponseProto resp)
           
static long[] convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto res)
           
static HdfsConstants.RollingUpgradeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeActionProto a)
           
static org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto proto)
           
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.CryptoProtocolVersionProto convert(org.apache.hadoop.crypto.CryptoProtocolVersion version)
           
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto> convert(org.apache.hadoop.crypto.CryptoProtocolVersion[] versions)
           
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 org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo info)
           
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.BlockIdCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto blkIdCmd)
           
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 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.HdfsProtos.DatanodeStorageProto convert(DatanodeStorage s)
           
static ShortCircuitShm.ShmId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto shmId)
           
static ShortCircuitShm.SlotId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto slotId)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto convert(org.apache.hadoop.hdfs.protocol.DirectoryListing d)
           
static org.apache.hadoop.hdfs.protocol.proto.EncryptionZonesProtos.EncryptionZoneProto convert(EncryptionZone zone)
           
static EncryptionZone convert(org.apache.hadoop.hdfs.protocol.proto.EncryptionZonesProtos.EncryptionZoneProto proto)
           
static int convert(EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag)
          The flag field in PB is a bitmask whose values are the same a the emum values of XAttrSetFlag
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.HdfsProtos.FileEncryptionInfoProto convert(org.apache.hadoop.fs.FileEncryptionInfo info)
           
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.AclProtos.AclEntryProto.FsActionProto convert(org.apache.hadoop.fs.permission.FsAction v)
           
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.RollingUpgradeActionProto convert(HdfsConstants.RollingUpgradeAction a)
           
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.protocol.BlockStoragePolicy convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockStoragePolicyProto proto)
           
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.crypto.CipherOption convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto proto)
           
static org.apache.hadoop.crypto.CipherSuite convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherSuiteProto proto)
           
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.crypto.CryptoProtocolVersion convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto proto)
           
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.DatanodeLocalInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto proto)
           
static DatanodeStorage convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeStorageProto s)
           
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.FileEncryptionInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FileEncryptionInfoProto proto)
           
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.fs.FileEncryptionInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.PerFileEncryptionInfoProto fileProto, org.apache.hadoop.crypto.CipherSuite suite, org.apache.hadoop.crypto.CryptoProtocolVersion version, String keyName)
           
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.protocol.RollingUpgradeStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto proto)
           
static SnapshotDiffReport.DiffReportEntry convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto entry)
           
static SnapshotDiffReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto reportProto)
           
static SnapshottableDirectoryStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto sdlp)
           
static SnapshottableDirectoryStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto sdirStatusProto)
           
static org.apache.hadoop.hdfs.server.common.StorageInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info, HdfsServerConstants.NodeType type)
           
static StorageReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto p)
           
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 EnumSet<org.apache.hadoop.fs.XAttrSetFlag> 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.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto convert(org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo info)
           
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.DataTransferProtos.ShortCircuitShmIdProto convert(ShortCircuitShm.ShmId shmId)
           
static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto convert(ShortCircuitShm.SlotId slotId)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto convert(SnapshotDiffReport.DiffReportEntry entry)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto convert(SnapshotDiffReport report)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto convert(SnapshottableDirectoryStatus status)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto convert(SnapshottableDirectoryStatus[] status)
           
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.HdfsProtos.StorageReportProto convert(StorageReport r)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypesProto convert(StorageType[] types)
           
static org.apache.hadoop.security.proto.SecurityProtos.TokenProto convert(org.apache.hadoop.security.token.Token<?> tok)
           
static List<org.apache.hadoop.fs.XAttr> convert(org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.GetXAttrsResponseProto a)
           
static List<org.apache.hadoop.fs.XAttr> convert(org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.ListXAttrsResponseProto a)
           
static List<org.apache.hadoop.fs.permission.AclEntry> convertAclEntry(List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> aclSpec)
           
static List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> convertAclEntryProto(List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)
           
static org.apache.hadoop.hdfs.security.token.block.BlockKey[] convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list)
           
static int convertCacheFlags(EnumSet<CacheFlag> flags)
           
static EnumSet<CacheFlag> convertCacheFlags(int flags)
           
static List<org.apache.hadoop.crypto.CipherOption> convertCipherOptionProtos(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto> protos)
           
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto> convertCipherOptions(List<org.apache.hadoop.crypto.CipherOption> options)
           
static int convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag)
           
static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> convertCreateFlag(int flag)
           
static org.apache.hadoop.crypto.CryptoProtocolVersion[] convertCryptoProtocolVersions(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto> protos)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convertDatanodeInfo(org.apache.hadoop.hdfs.protocol.DatanodeInfo di)
           
static DatanodeStorageReport convertDatanodeStorageReport(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto proto)
           
static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto convertDatanodeStorageReport(DatanodeStorageReport report)
           
static List<org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto> convertDatanodeStorageReports(DatanodeStorageReport[] reports)
           
static DatanodeStorageReport[] convertDatanodeStorageReports(List<org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto> protos)
           
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.proto.ClientNamenodeProtocolProtos.GetEditsFromTxidResponseProto convertEditsResponse(org.apache.hadoop.hdfs.inotify.EventsList el)
           
static org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.ListXAttrsResponseProto convertListXAttrsResponse(List<org.apache.hadoop.fs.XAttr> names)
           
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 org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.PerFileEncryptionInfoProto convertPerFileEncInfo(org.apache.hadoop.fs.FileEncryptionInfo info)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto convertRollingUpgradeStatus(org.apache.hadoop.hdfs.protocol.RollingUpgradeStatus status)
           
static org.apache.hadoop.hdfs.protocol.BlockStoragePolicy[] convertStoragePolicies(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockStoragePolicyProto> policyProtos)
           
static StorageReport[] convertStorageReports(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto> list)
           
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto> convertStorageReports(StorageReport[] storages)
           
static StorageType convertStorageType(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto type)
           
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto convertStorageType(StorageType type)
           
static StorageType[] convertStorageTypes(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto> storageTypesList, int expectedSize)
           
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto> convertStorageTypes(StorageType[] types)
           
static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto> convertStorageTypes(StorageType[] types, int startIdx)
           
static org.apache.hadoop.fs.XAttr convertXAttr(org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto a)
           
static List<org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto> convertXAttrProto(List<org.apache.hadoop.fs.XAttr> xAttrSpec)
           
static org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto convertXAttrProto(org.apache.hadoop.fs.XAttr a)
           
static List<org.apache.hadoop.fs.XAttr> convertXAttrs(List<org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto> xAttrSpec)
           
static org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.GetXAttrsResponseProto convertXAttrsResponse(List<org.apache.hadoop.fs.XAttr> xAttrs)
           
static com.google.protobuf.ByteString getByteString(byte[] bytes)
           
static InputStream vintPrefixed(InputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getByteString

public static com.google.protobuf.ByteString getByteString(byte[] bytes)

convert

public static HdfsServerConstants.NamenodeRole convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto role)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto convert(HdfsServerConstants.NamenodeRole role)

convertStoragePolicies

public static org.apache.hadoop.hdfs.protocol.BlockStoragePolicy[] convertStoragePolicies(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockStoragePolicyProto> policyProtos)

convert

public static org.apache.hadoop.hdfs.protocol.BlockStoragePolicy convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockStoragePolicyProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockStoragePolicyProto convert(org.apache.hadoop.hdfs.protocol.BlockStoragePolicy policy)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypesProto convert(StorageType[] types)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto convert(org.apache.hadoop.hdfs.server.common.StorageInfo info)

convert

public static org.apache.hadoop.hdfs.server.common.StorageInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageInfoProto info,
                                                                       HdfsServerConstants.NodeType type)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration reg)

convert

public static org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeRegistrationProto reg)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeID convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto dn)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto convert(org.apache.hadoop.hdfs.protocol.DatanodeID dn)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] convert(org.apache.hadoop.hdfs.protocol.DatanodeID[] did)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeID[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeIDProto[] did)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto convert(org.apache.hadoop.hdfs.protocol.Block b)

convert

public static org.apache.hadoop.hdfs.protocol.Block convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto b)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations blk)

convert

public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockWithLocationsProto b)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto convert(org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations blks)

convert

public static org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlocksWithLocationsProto blocks)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto convert(org.apache.hadoop.hdfs.security.token.block.BlockKey key)

convert

public static org.apache.hadoop.hdfs.security.token.block.BlockKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto k)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto convert(org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys keys)

convert

public static org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExportedBlockKeysProto keys)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto convert(org.apache.hadoop.hdfs.server.namenode.CheckpointSignature s)

convert

public static org.apache.hadoop.hdfs.server.namenode.CheckpointSignature convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointSignatureProto s)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto convert(RemoteEditLog log)

convert

public static RemoteEditLog convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogProto l)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto convert(RemoteEditLogManifest manifest)

convert

public static RemoteEditLogManifest convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RemoteEditLogManifestProto manifest)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointCommandProto convert(org.apache.hadoop.hdfs.server.protocol.CheckpointCommand cmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.NamenodeCommand cmd)

convertBlockKeys

public static org.apache.hadoop.hdfs.security.token.block.BlockKey[] convertBlockKeys(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockKeyProto> list)

convert

public static org.apache.hadoop.hdfs.server.protocol.NamespaceInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto info)

convert

public static org.apache.hadoop.hdfs.server.protocol.NamenodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamenodeCommandProto cmd)

convert

public static org.apache.hadoop.hdfs.protocol.ExtendedBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto eb)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto convert(org.apache.hadoop.hdfs.protocol.ExtendedBlock b)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock b)

convert

public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RecoveringBlockProto b)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState convert(DatanodeInfo.AdminStates inAs)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto di)

convertDatanodeInfo

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convertDatanodeInfo(org.apache.hadoop.hdfs.protocol.DatanodeInfo di)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto[] di)

convert

public static List<? extends org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] dnInfos)

convert

public 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.


convert

public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto> list)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeInfo info)

convertDatanodeStorageReport

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto convertDatanodeStorageReport(DatanodeStorageReport report)

convertDatanodeStorageReports

public static List<org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto> convertDatanodeStorageReports(DatanodeStorageReport[] reports)

convertDatanodeStorageReport

public static DatanodeStorageReport convertDatanodeStorageReport(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto proto)

convertDatanodeStorageReports

public static DatanodeStorageReport[] convertDatanodeStorageReports(List<org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeStorageReportProto> protos)

convert

public static DatanodeInfo.AdminStates convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfoProto.AdminState adminState)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto convert(org.apache.hadoop.hdfs.protocol.LocatedBlock b)

convert

public static org.apache.hadoop.hdfs.protocol.LocatedBlock convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto proto)

convert

public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto convert(org.apache.hadoop.security.token.Token<?> tok)

convert

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)

convertDelegationToken

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)

convert

public static HdfsServerConstants.ReplicaState convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto state)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ReplicaStateProto convert(HdfsServerConstants.ReplicaState state)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration registration)

convert

public static org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeRegistrationProto proto)

convert

public static org.apache.hadoop.hdfs.server.protocol.DatanodeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto convert(BalancerBandwidthCommand bbCmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto convert(org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand cmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand cmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.FinalizeCommand cmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockCommand cmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto convert(org.apache.hadoop.hdfs.server.protocol.BlockIdCommand cmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto convert(org.apache.hadoop.hdfs.server.protocol.DatanodeCommand datanodeCommand)

convert

public static org.apache.hadoop.hdfs.server.protocol.KeyUpdateCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.KeyUpdateCommandProto keyUpdateCmd)

convert

public static org.apache.hadoop.hdfs.server.protocol.FinalizeCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.FinalizeCommandProto finalizeCmd)

convert

public static org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockRecoveryCommandProto recoveryCmd)

convert

public static org.apache.hadoop.hdfs.server.protocol.BlockCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockCommandProto blkCmd)

convert

public static org.apache.hadoop.hdfs.server.protocol.BlockIdCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockIdCommandProto blkIdCmd)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeInfosProto datanodeInfosProto)

convert

public static BalancerBandwidthCommand convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BalancerBandwidthCommandProto balancerCmd)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto convert(ReceivedDeletedBlockInfo receivedDeletedBlockInfo)

convert

public static ReceivedDeletedBlockInfo convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ReceivedDeletedBlockInfoProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto convert(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info)

convertLocatedBlock

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] convertLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock[] lb)

convertLocatedBlock

public static org.apache.hadoop.hdfs.protocol.LocatedBlock[] convertLocatedBlock(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb)

convertLocatedBlock

public static List<org.apache.hadoop.hdfs.protocol.LocatedBlock> convertLocatedBlock(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb)

convertLocatedBlock2

public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> convertLocatedBlock2(List<org.apache.hadoop.hdfs.protocol.LocatedBlock> lb)

convert

public static org.apache.hadoop.hdfs.protocol.LocatedBlocks convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto lb)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto convert(org.apache.hadoop.hdfs.protocol.LocatedBlocks lb)

convert

public static org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto bet)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto convert(org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey bet)

convert

public static org.apache.hadoop.fs.FsServerDefaults convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto fs)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto convert(org.apache.hadoop.fs.FsServerDefaults fs)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto convert(org.apache.hadoop.fs.permission.FsPermission p)

convert

public static org.apache.hadoop.fs.permission.FsPermission convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsPermissionProto p)

convertCreateFlag

public static int convertCreateFlag(org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag)

convertCreateFlag

public static org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> convertCreateFlag(int flag)

convertCacheFlags

public static int convertCacheFlags(EnumSet<CacheFlag> flags)

convertCacheFlags

public static EnumSet<CacheFlag> convertCacheFlags(int flags)

convert

public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto fs)

convert

public static SnapshottableDirectoryStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto sdirStatusProto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus fs)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryStatusProto convert(SnapshottableDirectoryStatus status)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] convert(org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] fs)

convert

public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.HdfsFileStatusProto[] fs)

convert

public static org.apache.hadoop.hdfs.protocol.DirectoryListing convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto dl)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DirectoryListingProto convert(org.apache.hadoop.hdfs.protocol.DirectoryListing d)

convert

public static long[] convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto res)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetFsStatsResponseProto convert(long[] fsStats)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto convert(HdfsConstants.DatanodeReportType t)

convert

public static HdfsConstants.DatanodeReportType convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.DatanodeReportTypeProto t)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto convert(HdfsConstants.SafeModeAction a)

convert

public static HdfsConstants.SafeModeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto a)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeActionProto convert(HdfsConstants.RollingUpgradeAction a)

convert

public static HdfsConstants.RollingUpgradeAction convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeActionProto a)

convertRollingUpgradeStatus

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto convertRollingUpgradeStatus(org.apache.hadoop.hdfs.protocol.RollingUpgradeStatus status)

convert

public static org.apache.hadoop.hdfs.protocol.RollingUpgradeStatus convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.RollingUpgradeStatusProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto convert(org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo info)

convert

public static org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.RollingUpgradeInfoProto proto)

convert

public static CorruptFileBlocks convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto c)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CorruptFileBlocksProto convert(CorruptFileBlocks c)

convert

public static org.apache.hadoop.fs.ContentSummary convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto cs)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ContentSummaryProto convert(org.apache.hadoop.fs.ContentSummary cs)

convert

public static org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat convert(org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto s)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.NNHAStatusHeartbeatProto convert(org.apache.hadoop.hdfs.server.protocol.NNHAStatusHeartbeat hb)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeStorageProto convert(DatanodeStorage s)

convertStorageTypes

public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto> convertStorageTypes(StorageType[] types)

convertStorageTypes

public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto> convertStorageTypes(StorageType[] types,
                                                                                                          int startIdx)

convertStorageType

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto convertStorageType(StorageType type)

convert

public static DatanodeStorage convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeStorageProto s)

convertStorageType

public static StorageType convertStorageType(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto type)

convertStorageTypes

public static StorageType[] convertStorageTypes(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageTypeProto> storageTypesList,
                                                int expectedSize)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto convert(StorageReport r)

convert

public static StorageReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto p)

convertStorageReports

public static StorageReport[] convertStorageReports(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto> list)

convertStorageReports

public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.StorageReportProto> convertStorageReports(StorageReport[] storages)

convert

public static org.apache.hadoop.hdfs.server.protocol.JournalInfo convert(org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto info)

convert

public 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.


convert

public static SnapshottableDirectoryStatus[] convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto sdlp)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshottableDirectoryListingProto convert(SnapshottableDirectoryStatus[] status)

convert

public static SnapshotDiffReport.DiffReportEntry convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto entry)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportEntryProto convert(SnapshotDiffReport.DiffReportEntry entry)

convert

public static SnapshotDiffReport convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto reportProto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.SnapshotDiffReportProto convert(SnapshotDiffReport report)

convert

public static org.apache.hadoop.util.DataChecksum.Type convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto type)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto convert(CacheDirectiveInfo info)

convert

public static CacheDirectiveInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto convert(CacheDirectiveInfo.Expiration expiration)

convert

public static CacheDirectiveInfo.Expiration convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveInfoExpirationProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto convert(CacheDirectiveStats stats)

convert

public static CacheDirectiveStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto convert(CacheDirectiveEntry entry)

convert

public static CacheDirectiveEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveEntryProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto convert(CachePoolInfo info)

convert

public static CachePoolInfo convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolInfoProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto convert(CachePoolStats stats)

convert

public static CachePoolStats convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolStatsProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto convert(CachePoolEntry entry)

convert

public static CachePoolEntry convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CachePoolEntryProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ChecksumTypeProto convert(org.apache.hadoop.util.DataChecksum.Type type)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto convert(org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo info)

convert

public static org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeLocalInfoProto proto)

vintPrefixed

public static InputStream vintPrefixed(InputStream input)
                                throws IOException
Throws:
IOException

convert

public static org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto.FsActionProto convert(org.apache.hadoop.fs.permission.FsAction v)

convert

public static org.apache.hadoop.fs.permission.FsAction convert(org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto.FsActionProto v)

convertAclEntryProto

public static List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> convertAclEntryProto(List<org.apache.hadoop.fs.permission.AclEntry> aclSpec)

convertAclEntry

public static List<org.apache.hadoop.fs.permission.AclEntry> convertAclEntry(List<org.apache.hadoop.hdfs.protocol.proto.AclProtos.AclEntryProto> aclSpec)

convert

public static org.apache.hadoop.fs.permission.AclStatus convert(org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto e)

convert

public static org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto convert(org.apache.hadoop.fs.permission.AclStatus e)

convertXAttrProto

public static org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto convertXAttrProto(org.apache.hadoop.fs.XAttr a)

convertXAttrProto

public static List<org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto> convertXAttrProto(List<org.apache.hadoop.fs.XAttr> xAttrSpec)

convert

public static int convert(EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag)
The flag field in PB is a bitmask whose values are the same a the emum values of XAttrSetFlag


convert

public static EnumSet<org.apache.hadoop.fs.XAttrSetFlag> convert(int flag)

convertXAttr

public static org.apache.hadoop.fs.XAttr convertXAttr(org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto a)

convertXAttrs

public static List<org.apache.hadoop.fs.XAttr> convertXAttrs(List<org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.XAttrProto> xAttrSpec)

convert

public static List<org.apache.hadoop.fs.XAttr> convert(org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.GetXAttrsResponseProto a)

convertXAttrsResponse

public static org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.GetXAttrsResponseProto convertXAttrsResponse(List<org.apache.hadoop.fs.XAttr> xAttrs)

convert

public static List<org.apache.hadoop.fs.XAttr> convert(org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.ListXAttrsResponseProto a)

convertListXAttrsResponse

public static org.apache.hadoop.hdfs.protocol.proto.XAttrProtos.ListXAttrsResponseProto convertListXAttrsResponse(List<org.apache.hadoop.fs.XAttr> names)

convert

public static org.apache.hadoop.hdfs.protocol.proto.EncryptionZonesProtos.EncryptionZoneProto convert(EncryptionZone zone)

convert

public static EncryptionZone convert(org.apache.hadoop.hdfs.protocol.proto.EncryptionZonesProtos.EncryptionZoneProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto convert(ShortCircuitShm.SlotId slotId)

convert

public static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto convert(ShortCircuitShm.ShmId shmId)

convert

public static ShortCircuitShm.SlotId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmSlotProto slotId)

convert

public static ShortCircuitShm.ShmId convert(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ShortCircuitShmIdProto shmId)

convert

public static org.apache.hadoop.hdfs.inotify.EventsList convert(org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetEditsFromTxidResponseProto resp)
                                                         throws IOException
Throws:
IOException

convertEditsResponse

public static org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.GetEditsFromTxidResponseProto convertEditsResponse(org.apache.hadoop.hdfs.inotify.EventsList el)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto convert(org.apache.hadoop.crypto.CipherOption option)

convert

public static org.apache.hadoop.crypto.CipherOption convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto proto)

convertCipherOptions

public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto> convertCipherOptions(List<org.apache.hadoop.crypto.CipherOption> options)

convertCipherOptionProtos

public static List<org.apache.hadoop.crypto.CipherOption> convertCipherOptionProtos(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherOptionProto> protos)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherSuiteProto convert(org.apache.hadoop.crypto.CipherSuite suite)

convert

public static org.apache.hadoop.crypto.CipherSuite convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CipherSuiteProto proto)

convert

public static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto> convert(org.apache.hadoop.crypto.CryptoProtocolVersion[] versions)

convertCryptoProtocolVersions

public static org.apache.hadoop.crypto.CryptoProtocolVersion[] convertCryptoProtocolVersions(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto> protos)

convert

public static org.apache.hadoop.crypto.CryptoProtocolVersion convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto proto)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CryptoProtocolVersionProto convert(org.apache.hadoop.crypto.CryptoProtocolVersion version)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FileEncryptionInfoProto convert(org.apache.hadoop.fs.FileEncryptionInfo info)

convertPerFileEncInfo

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.PerFileEncryptionInfoProto convertPerFileEncInfo(org.apache.hadoop.fs.FileEncryptionInfo info)

convert

public static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ZoneEncryptionInfoProto convert(org.apache.hadoop.crypto.CipherSuite suite,
                                                                                               org.apache.hadoop.crypto.CryptoProtocolVersion version,
                                                                                               String keyName)

convert

public static org.apache.hadoop.fs.FileEncryptionInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FileEncryptionInfoProto proto)

convert

public static org.apache.hadoop.fs.FileEncryptionInfo convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.PerFileEncryptionInfoProto fileProto,
                                                              org.apache.hadoop.crypto.CipherSuite suite,
                                                              org.apache.hadoop.crypto.CryptoProtocolVersion version,
                                                              String keyName)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.