xia_analytics_sql.analyzer.SqlAnalyzer

class xia_analytics_sql.analyzer.SqlAnalyzer

Bases: Analyzer

__init__()

Methods

__init__()

compile(document_class, engine, analytic_request)

Compile the analysis request

Attributes

analytic_sql_template

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