Struct hadoop_proto::hadoop::hdfs::HdfsFileStatusProto
source · pub struct HdfsFileStatusProto {Show 19 fields
pub file_type: i32,
pub path: Vec<u8>,
pub length: u64,
pub permission: FsPermissionProto,
pub owner: String,
pub group: String,
pub modification_time: u64,
pub access_time: u64,
pub symlink: Option<Vec<u8>>,
pub block_replication: Option<u32>,
pub blocksize: Option<u64>,
pub locations: Option<LocatedBlocksProto>,
pub file_id: Option<u64>,
pub children_num: Option<i32>,
pub file_encryption_info: Option<FileEncryptionInfoProto>,
pub storage_policy: Option<u32>,
pub ec_policy: Option<ErasureCodingPolicyProto>,
pub flags: Option<u32>,
pub namespace: Option<String>,
}Expand description
Status of a file, directory or symlink Optionally includes a file’s block locations if requested by client on the rpc call.
Fields§
§file_type: i32§path: Vec<u8>local name of inode encoded java UTF8
length: u64§permission: FsPermissionProto§owner: String§group: String§modification_time: u64§access_time: u64§symlink: Option<Vec<u8>>Optional fields for symlink
if symlink, target encoded java UTF8
block_replication: Option<u32>Optional fields for file
only 16bits used
blocksize: Option<u64>§locations: Option<LocatedBlocksProto>suppled only if asked by client
file_id: Option<u64>Optional field for fileId
default as an invalid id
children_num: Option<i32>§file_encryption_info: Option<FileEncryptionInfoProto>Optional field for file encryption
storage_policy: Option<u32>block storage policy id
ec_policy: Option<ErasureCodingPolicyProto>Optional field for erasure coding
flags: Option<u32>Set of flags
namespace: Option<String>Implementations§
source§impl HdfsFileStatusProto
impl HdfsFileStatusProto
sourcepub fn file_type(&self) -> FileType
pub fn file_type(&self) -> FileType
Returns the enum value of file_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_file_type(&mut self, value: FileType)
pub fn set_file_type(&mut self, value: FileType)
Sets file_type to the provided enum value.
sourcepub fn symlink(&self) -> &[u8] ⓘ
pub fn symlink(&self) -> &[u8] ⓘ
Returns the value of symlink, or the default value if symlink is unset.
sourcepub fn block_replication(&self) -> u32
pub fn block_replication(&self) -> u32
Returns the value of block_replication, or the default value if block_replication is unset.
sourcepub fn blocksize(&self) -> u64
pub fn blocksize(&self) -> u64
Returns the value of blocksize, or the default value if blocksize is unset.
sourcepub fn file_id(&self) -> u64
pub fn file_id(&self) -> u64
Returns the value of file_id, or the default value if file_id is unset.
sourcepub fn children_num(&self) -> i32
pub fn children_num(&self) -> i32
Returns the value of children_num, or the default value if children_num is unset.
sourcepub fn storage_policy(&self) -> u32
pub fn storage_policy(&self) -> u32
Returns the value of storage_policy, or the default value if storage_policy is unset.
Trait Implementations§
source§impl Clone for HdfsFileStatusProto
impl Clone for HdfsFileStatusProto
source§fn clone(&self) -> HdfsFileStatusProto
fn clone(&self) -> HdfsFileStatusProto
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HdfsFileStatusProto
impl Debug for HdfsFileStatusProto
source§impl Default for HdfsFileStatusProto
impl Default for HdfsFileStatusProto
source§impl Message for HdfsFileStatusProto
impl Message for HdfsFileStatusProto
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self.source§impl PartialEq<HdfsFileStatusProto> for HdfsFileStatusProto
impl PartialEq<HdfsFileStatusProto> for HdfsFileStatusProto
source§fn eq(&self, other: &HdfsFileStatusProto) -> bool
fn eq(&self, other: &HdfsFileStatusProto) -> bool
self and other values to be equal, and is used
by ==.