Struct pravega_client_shared::StreamSegments [−][src]
pub struct StreamSegments { pub key_segment_map: OrdMap<OrderedFloat<f64>, SegmentWithRange>, }
Fields
key_segment_map: OrdMap<OrderedFloat<f64>, SegmentWithRange>
Implementations
impl StreamSegments
[src]
impl StreamSegments
[src]pub fn new(
map_key_segment: BTreeMap<OrderedFloat<f64>, SegmentWithRange>
) -> StreamSegments
[src]
map_key_segment: BTreeMap<OrderedFloat<f64>, SegmentWithRange>
) -> StreamSegments
pub fn get_segment_for_routing_key(
&self,
routing_key: &Option<String>,
rand_f64: fn() -> f64
) -> &ScopedSegment
[src]
pub fn get_segment_for_routing_key(
&self,
routing_key: &Option<String>,
rand_f64: fn() -> f64
) -> &ScopedSegment
[src]Selects a segment using a routing key.
pub fn get_segment(&self, key: f64) -> &ScopedSegment
[src]
pub fn get_segment_for_string(&self, str: &str) -> &ScopedSegment
[src]
pub fn get_segments(&self) -> Vec<ScopedSegment>
[src]
pub fn apply_replacement_range(
&self,
segment_replace: &Segment,
replacement_ranges: &StreamSegmentsWithPredecessors
) -> Result<StreamSegments, String>
[src]
&self,
segment_replace: &Segment,
replacement_ranges: &StreamSegmentsWithPredecessors
) -> Result<StreamSegments, String>
Trait Implementations
impl Clone for StreamSegments
[src]
impl Clone for StreamSegments
[src]fn clone(&self) -> StreamSegments
[src]
fn clone(&self) -> StreamSegments
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StreamSegments
[src]
impl Debug for StreamSegments
[src]impl Hash for StreamSegments
[src]
impl Hash for StreamSegments
[src]impl PartialEq<StreamSegments> for StreamSegments
[src]
impl PartialEq<StreamSegments> for StreamSegments
[src]fn eq(&self, other: &StreamSegments) -> bool
[src]
fn eq(&self, other: &StreamSegments) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &StreamSegments) -> bool
[src]
fn ne(&self, other: &StreamSegments) -> bool
[src]This method tests for !=
.
impl Eq for StreamSegments
[src]
impl StructuralEq for StreamSegments
[src]
impl StructuralPartialEq for StreamSegments
[src]
Auto Trait Implementations
impl RefUnwindSafe for StreamSegments
impl Send for StreamSegments
impl Sync for StreamSegments
impl Unpin for StreamSegments
impl UnwindSafe for StreamSegments
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more