pub struct AnalyticsCoordinator {
pub config: CoordinatorConfig,
pub state: PipelineState,
pub stats: CoordinatorStats,
/* private fields */
}Expand description
Analytics pipeline coordinator.
Manages GPU kernel actors and orchestrates the analytics pipeline.
Fields§
§config: CoordinatorConfigConfiguration.
state: PipelineStatePipeline state.
stats: CoordinatorStatsProcessing statistics.
Implementations§
Source§impl AnalyticsCoordinator
impl AnalyticsCoordinator
Sourcepub fn new(config: CoordinatorConfig) -> Self
pub fn new(config: CoordinatorConfig) -> Self
Create a new coordinator.
Sourcepub fn begin_snapshot(&mut self) -> u64
pub fn begin_snapshot(&mut self) -> u64
Start processing a new network snapshot.
Sourcepub fn create_pagerank_request(
&self,
account_count: u32,
edge_count: u32,
graph_offset: u64,
) -> PageRankRequest
pub fn create_pagerank_request( &self, account_count: u32, edge_count: u32, graph_offset: u64, ) -> PageRankRequest
Create a PageRank request.
Sourcepub fn create_fraud_detection_request(
&self,
flow_count: u32,
flows_offset: u64,
accounts_offset: u64,
account_count: u32,
) -> FraudDetectionRequest
pub fn create_fraud_detection_request( &self, flow_count: u32, flows_offset: u64, accounts_offset: u64, account_count: u32, ) -> FraudDetectionRequest
Create a fraud detection request.
Sourcepub fn create_gaap_validation_request(
&self,
flow_count: u32,
flows_offset: u64,
account_types_offset: u64,
) -> GaapValidationRequest
pub fn create_gaap_validation_request( &self, flow_count: u32, flows_offset: u64, account_types_offset: u64, ) -> GaapValidationRequest
Create a GAAP validation request.
Sourcepub fn create_benford_analysis_request(
&self,
amount_count: u32,
amounts_offset: u64,
) -> BenfordAnalysisRequest
pub fn create_benford_analysis_request( &self, amount_count: u32, amounts_offset: u64, ) -> BenfordAnalysisRequest
Create a Benford analysis request.
Sourcepub fn create_suspense_detection_request(
&self,
account_count: u32,
balances_offset: u64,
risk_scores_offset: u64,
flow_counts_offset: u64,
) -> SuspenseDetectionRequest
pub fn create_suspense_detection_request( &self, account_count: u32, balances_offset: u64, risk_scores_offset: u64, flow_counts_offset: u64, ) -> SuspenseDetectionRequest
Create a suspense detection request.
Sourcepub fn handle_pagerank_response(&mut self, _response: PageRankResponse)
pub fn handle_pagerank_response(&mut self, _response: PageRankResponse)
Handle PageRank response.
Sourcepub fn handle_fraud_response(&mut self, response: FraudDetectionResponse)
pub fn handle_fraud_response(&mut self, response: FraudDetectionResponse)
Handle fraud detection response.
Sourcepub fn handle_gaap_response(&mut self, response: GaapValidationResponse)
pub fn handle_gaap_response(&mut self, response: GaapValidationResponse)
Handle GAAP validation response.
Sourcepub fn handle_benford_response(&mut self, response: BenfordAnalysisResponse)
pub fn handle_benford_response(&mut self, response: BenfordAnalysisResponse)
Handle Benford analysis response.
Sourcepub fn handle_suspense_response(&mut self, response: SuspenseDetectionResponse)
pub fn handle_suspense_response(&mut self, response: SuspenseDetectionResponse)
Handle suspense detection response.
Sourcepub fn finalize_snapshot(&mut self) -> AnalyticsResult
pub fn finalize_snapshot(&mut self) -> AnalyticsResult
Finalize the current snapshot.
Auto Trait Implementations§
impl Freeze for AnalyticsCoordinator
impl RefUnwindSafe for AnalyticsCoordinator
impl Send for AnalyticsCoordinator
impl Sync for AnalyticsCoordinator
impl Unpin for AnalyticsCoordinator
impl UnwindSafe for AnalyticsCoordinator
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
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.