pub struct OpWriteBlockProto {Show 17 fields
pub header: ClientOperationHeaderProto,
pub targets: Vec<DatanodeInfoProto>,
pub source: Option<DatanodeInfoProto>,
pub stage: i32,
pub pipeline_size: u32,
pub min_bytes_rcvd: u64,
pub max_bytes_rcvd: u64,
pub latest_generation_stamp: u64,
pub requested_checksum: ChecksumProto,
pub caching_strategy: Option<CachingStrategyProto>,
pub storage_type: Option<i32>,
pub target_storage_types: Vec<i32>,
pub allow_lazy_persist: Option<bool>,
pub pinning: Option<bool>,
pub target_pinnings: Vec<bool>,
pub storage_id: Option<String>,
pub target_storage_ids: Vec<String>,
}
Fields§
§header: ClientOperationHeaderProto
§targets: Vec<DatanodeInfoProto>
§source: Option<DatanodeInfoProto>
§stage: i32
§pipeline_size: u32
§min_bytes_rcvd: u64
§max_bytes_rcvd: u64
§latest_generation_stamp: u64
§requested_checksum: ChecksumProto
The requested checksum mechanism for this block write.
caching_strategy: Option<CachingStrategyProto>
§storage_type: Option<i32>
§target_storage_types: Vec<i32>
§allow_lazy_persist: Option<bool>
Hint to the DataNode that the block can be allocated on transient storage i.e. memory and written to disk lazily. The DataNode is free to ignore this hint.
pinning: Option<bool>
whether to pin the block, so Balancer won’t move it.
target_pinnings: Vec<bool>
§storage_id: Option<String>
§target_storage_ids: Vec<String>
Implementations§
Source§impl OpWriteBlockProto
impl OpWriteBlockProto
Sourcepub fn stage(&self) -> BlockConstructionStage
pub fn stage(&self) -> BlockConstructionStage
Returns the enum value of stage
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_stage(&mut self, value: BlockConstructionStage)
pub fn set_stage(&mut self, value: BlockConstructionStage)
Sets stage
to the provided enum value.
Sourcepub fn storage_type(&self) -> StorageTypeProto
pub fn storage_type(&self) -> StorageTypeProto
Returns the enum value of storage_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_storage_type(&mut self, value: StorageTypeProto)
pub fn set_storage_type(&mut self, value: StorageTypeProto)
Sets storage_type
to the provided enum value.
Sourcepub fn target_storage_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<StorageTypeProto>>
pub fn target_storage_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<StorageTypeProto>>
Returns an iterator which yields the valid enum values contained in target_storage_types
.
Sourcepub fn push_target_storage_types(&mut self, value: StorageTypeProto)
pub fn push_target_storage_types(&mut self, value: StorageTypeProto)
Appends the provided enum value to target_storage_types
.
Sourcepub fn allow_lazy_persist(&self) -> bool
pub fn allow_lazy_persist(&self) -> bool
Returns the value of allow_lazy_persist
, or the default value if allow_lazy_persist
is unset.
Sourcepub fn pinning(&self) -> bool
pub fn pinning(&self) -> bool
Returns the value of pinning
, or the default value if pinning
is unset.
Sourcepub fn storage_id(&self) -> &str
pub fn storage_id(&self) -> &str
Returns the value of storage_id
, or the default value if storage_id
is unset.
Trait Implementations§
Source§impl Clone for OpWriteBlockProto
impl Clone for OpWriteBlockProto
Source§fn clone(&self) -> OpWriteBlockProto
fn clone(&self) -> OpWriteBlockProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OpWriteBlockProto
impl Debug for OpWriteBlockProto
Source§impl Default for OpWriteBlockProto
impl Default for OpWriteBlockProto
Source§impl Message for OpWriteBlockProto
impl Message for OpWriteBlockProto
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
.Source§impl PartialEq for OpWriteBlockProto
impl PartialEq for OpWriteBlockProto
impl StructuralPartialEq for OpWriteBlockProto
Auto Trait Implementations§
impl Freeze for OpWriteBlockProto
impl RefUnwindSafe for OpWriteBlockProto
impl Send for OpWriteBlockProto
impl Sync for OpWriteBlockProto
impl Unpin for OpWriteBlockProto
impl UnwindSafe for OpWriteBlockProto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request