Class: ConnectorSource

LocusZoom_Adapters~ConnectorSource()

Base class for "connectors"- this is a highly specialized kind of adapter that is rarely used in most LocusZoom deployments. This is meant to be subclassed, rather than used directly.

A connector is a data adapter that makes no server requests and caches no data of its own. Instead, it decides how to combine data from other sources in the chain. Connectors are useful when we want to request (or calculate) some useful piece of information once, but apply it to many different kinds of record types.

Typically, a subclass will implement the field merging logic in combineChainBody.

Constructor

new ConnectorSource()

Parameters:
Name Type Description
config.params Object

Additional parameters

Properties
Name Type Description
sources Object

Specify how the hard-coded logic should find the data it relies on in the chain, as {internal_name: chain_source_id} pairs. This allows writing a reusable connector that does not need to make assumptions about what namespaces a source is using. *

Source:
See: