EntityProcessor

class EntityProcessor(field)[source]

Methods

__init__(field)[source]

EntityProcessor gets a value off an entity object

Parameters:

field (str) – The entity property to be returned. If a nested field, separate each level with “.”, i.e. ‘xref.bbid’

as_dict()

Create a dictionary representation of the processor. Used for eventually turning the processor into json for API usage. Allows for nested processors. :rtype: Dict :return: Dictionary representation of the processor

build_graph(entity, cell, queries, rdate_entity_map, overrides)

Generates the nested cell graph and keeps a map of leaf data queries to processors

async calculate(attribute, result, rdate_entity_map, pool=None, query_info=None)

Sets the result on the processor and recursively calls parent to set and calculate value

Parameters:
  • attribute (str) – Attribute alinging to data coordinate in the processor

  • result (ProcessorResult) – Processor result including success and series from data query

classmethod from_dict(obj, reference_list)
get_default_params()
get_plot_expression()[source]

This method does not apply for entity processor

post_process()
process(entity)[source]

Fetch the entity and resolve the field

Return type:

ProcessorResult

update(attribute, result)[source]

This method does not apply for entity processor

Return type:

None