xia_analytics.analyzer.Analyzer

class xia_analytics.analyzer.Analyzer

Bases: object

__init__()

Methods

__init__()

compile(document_class, engine, analytic_request)

Compile the analysis request

classmethod compile(document_class: Type[BaseDocument], engine: Type[BaseEngine], analytic_request: dict, acl_condition=None)

Compile the analysis request

Parameters
  • document_class (subclass of BaseDocument) – Document definition

  • engine – (subclass of BaseDocument): Engine for which the analytical model should be executed

  • analytic_request – analytic request

  • acl_condition – Extra where condition given by user acl objects

Returns

A analytic model which could be executed by the engine