pub struct SortAttributesOptions {
pub history_length: usize,
pub spatio_temporal_constraints: SpatioTemporalConstraints,
pub position_weight: f32,
pub velocity_weight: f32,
/* private fields */
}Fields§
§history_length: usizeThe maximum length of collected objects for the track
spatio_temporal_constraints: SpatioTemporalConstraints§position_weight: f32§velocity_weight: f32Implementations§
Trait Implementations§
Source§impl Debug for SortAttributesOptions
impl Debug for SortAttributesOptions
Source§impl Default for SortAttributesOptions
impl Default for SortAttributesOptions
Source§impl EpochDb for SortAttributesOptions
impl EpochDb for SortAttributesOptions
fn epoch_db(&self) -> &Option<RwLock<HashMap<u64, usize>>>
fn max_idle_epochs(&self) -> usize
fn skip_epochs_for_scene(&self, scene_id: u64, n: usize)
fn current_epoch_with_scene(&self, scene_id: u64) -> Option<usize>
fn next_epoch(&self, scene_id: u64) -> Option<usize>
fn baked(&self, scene_id: u64, last_updated: usize) -> Result<TrackStatus>
Source§impl TrackerAPI<SortAttributes, SortMetric, Universal2DBox, SortAttributesOptions, NoopNotifier> for BatchSort
impl TrackerAPI<SortAttributes, SortMetric, Universal2DBox, SortAttributesOptions, NoopNotifier> for BatchSort
fn get_auto_waste_obj_mut(&mut self) -> &mut AutoWaste
fn get_opts(&self) -> &SortAttributesOptions
fn get_main_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox>>
fn get_wasted_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox>>
fn get_main_store( &self, ) -> RwLockReadGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox>>
fn get_wasted_store( &self, ) -> RwLockReadGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox>>
Source§fn set_auto_waste(&mut self, periodicity: usize)
fn set_auto_waste(&mut self, periodicity: usize)
change auto waste job periodicity
Source§fn skip_epochs(&mut self, n: usize)
fn skip_epochs(&mut self, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn current_epoch(&self) -> usize
fn current_epoch(&self) -> usize
Get the current epoch for
scene_id == 0Source§fn current_epoch_with_scene(&self, scene_id: u64) -> usize
fn current_epoch_with_scene(&self, scene_id: u64) -> usize
Get the current epoch for
scene_id Read moreSource§fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Receive all the tracks with expired life from the main store
fn auto_waste(&mut self)
fn wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Source§fn active_shard_stats(&self) -> Vec<usize>
fn active_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in main store per shard
Source§fn wasted_shard_stats(&self) -> Vec<usize>
fn wasted_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in wasted store per shard
Source§fn clear_wasted(&self)
fn clear_wasted(&self)
Clears wasted tracks
Source§impl TrackerAPI<SortAttributes, SortMetric, Universal2DBox, SortAttributesOptions, NoopNotifier> for Sort
impl TrackerAPI<SortAttributes, SortMetric, Universal2DBox, SortAttributesOptions, NoopNotifier> for Sort
fn get_auto_waste_obj_mut(&mut self) -> &mut AutoWaste
fn get_opts(&self) -> &SortAttributesOptions
fn get_main_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox, NoopNotifier>>
fn get_wasted_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox, NoopNotifier>>
fn get_main_store( &self, ) -> RwLockReadGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox, NoopNotifier>>
fn get_wasted_store( &self, ) -> RwLockReadGuard<'_, TrackStore<SortAttributes, SortMetric, Universal2DBox, NoopNotifier>>
Source§fn set_auto_waste(&mut self, periodicity: usize)
fn set_auto_waste(&mut self, periodicity: usize)
change auto waste job periodicity
Source§fn skip_epochs(&mut self, n: usize)
fn skip_epochs(&mut self, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn current_epoch(&self) -> usize
fn current_epoch(&self) -> usize
Get the current epoch for
scene_id == 0Source§fn current_epoch_with_scene(&self, scene_id: u64) -> usize
fn current_epoch_with_scene(&self, scene_id: u64) -> usize
Get the current epoch for
scene_id Read moreSource§fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Receive all the tracks with expired life from the main store
fn auto_waste(&mut self)
fn wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Source§fn active_shard_stats(&self) -> Vec<usize>
fn active_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in main store per shard
Source§fn wasted_shard_stats(&self) -> Vec<usize>
fn wasted_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in wasted store per shard
Source§fn clear_wasted(&self)
fn clear_wasted(&self)
Clears wasted tracks
Source§impl TrackerAPI<VisualAttributes, VisualMetric, VisualObservationAttributes, SortAttributesOptions, NoopNotifier> for BatchVisualSort
impl TrackerAPI<VisualAttributes, VisualMetric, VisualObservationAttributes, SortAttributesOptions, NoopNotifier> for BatchVisualSort
fn get_auto_waste_obj_mut(&mut self) -> &mut AutoWaste
fn get_opts(&self) -> &SortAttributesOptions
fn get_main_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes>>
fn get_wasted_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes>>
fn get_main_store( &self, ) -> RwLockReadGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes>>
fn get_wasted_store( &self, ) -> RwLockReadGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes>>
Source§fn set_auto_waste(&mut self, periodicity: usize)
fn set_auto_waste(&mut self, periodicity: usize)
change auto waste job periodicity
Source§fn skip_epochs(&mut self, n: usize)
fn skip_epochs(&mut self, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn current_epoch(&self) -> usize
fn current_epoch(&self) -> usize
Get the current epoch for
scene_id == 0Source§fn current_epoch_with_scene(&self, scene_id: u64) -> usize
fn current_epoch_with_scene(&self, scene_id: u64) -> usize
Get the current epoch for
scene_id Read moreSource§fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Receive all the tracks with expired life from the main store
fn auto_waste(&mut self)
fn wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Source§fn active_shard_stats(&self) -> Vec<usize>
fn active_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in main store per shard
Source§fn wasted_shard_stats(&self) -> Vec<usize>
fn wasted_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in wasted store per shard
Source§fn clear_wasted(&self)
fn clear_wasted(&self)
Clears wasted tracks
Source§impl TrackerAPI<VisualAttributes, VisualMetric, VisualObservationAttributes, SortAttributesOptions, NoopNotifier> for VisualSort
impl TrackerAPI<VisualAttributes, VisualMetric, VisualObservationAttributes, SortAttributesOptions, NoopNotifier> for VisualSort
fn get_auto_waste_obj_mut(&mut self) -> &mut AutoWaste
fn get_opts(&self) -> &SortAttributesOptions
fn get_main_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes, NoopNotifier>>
fn get_wasted_store_mut( &mut self, ) -> RwLockWriteGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes, NoopNotifier>>
fn get_main_store( &self, ) -> RwLockReadGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes, NoopNotifier>>
fn get_wasted_store( &self, ) -> RwLockReadGuard<'_, TrackStore<VisualAttributes, VisualMetric, VisualObservationAttributes, NoopNotifier>>
Source§fn set_auto_waste(&mut self, periodicity: usize)
fn set_auto_waste(&mut self, periodicity: usize)
change auto waste job periodicity
Source§fn skip_epochs(&mut self, n: usize)
fn skip_epochs(&mut self, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
fn skip_epochs_for_scene(&mut self, scene_id: u64, n: usize)
Skip number of epochs to force tracks to turn to terminal state Read more
Source§fn current_epoch(&self) -> usize
fn current_epoch(&self) -> usize
Get the current epoch for
scene_id == 0Source§fn current_epoch_with_scene(&self, scene_id: u64) -> usize
fn current_epoch_with_scene(&self, scene_id: u64) -> usize
Get the current epoch for
scene_id Read moreSource§fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
fn get_main_store_wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Receive all the tracks with expired life from the main store
fn auto_waste(&mut self)
fn wasted(&mut self) -> Vec<Track<TA, M, OA, N>>
Source§fn active_shard_stats(&self) -> Vec<usize>
fn active_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in main store per shard
Source§fn wasted_shard_stats(&self) -> Vec<usize>
fn wasted_shard_stats(&self) -> Vec<usize>
Get the amount of tracks kept in wasted store per shard
Source§fn clear_wasted(&self)
fn clear_wasted(&self)
Clears wasted tracks
Auto Trait Implementations§
impl !Freeze for SortAttributesOptions
impl RefUnwindSafe for SortAttributesOptions
impl Send for SortAttributesOptions
impl Sync for SortAttributesOptions
impl Unpin for SortAttributesOptions
impl UnwindSafe for SortAttributesOptions
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.