pub struct HdfsFileStatusProto {Show 18 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>,
}
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
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>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.