The Assimilation Project  based on Assimilation version
cma.query.QueryExecutor Class Reference
Inheritance diagram for cma.query.QueryExecutor:
Collaboration diagram for cma.query.QueryExecutor:

Public Member Functions

def __init__ (self, store, metadata)
def parameter_names (self)
def result_iterator (self, params)

Static Public Member Functions

def construct_query (store, metadata)
def register (ourclass)

Data Fields


Static Public Attributes

string DEFAULT_EXECUTOR_METHOD = 'CypherExecutor'
dictionary EXECUTOR_METHODS = {}

Detailed Description

An abstract class which knows which can perform a variety of types of queries
At the moment that's "python" and "cypher".

Definition at line 568 of file

Constructor & Destructor Documentation

def cma.query.QueryExecutor.__init__ (   self,
Construct an object remembering our metadata

Definition at line 575 of file

Member Function Documentation

def cma.query.QueryExecutor.construct_query (   store,
Construct a query of the type requested.
We return None if we can't construct a query from our metadata.

Definition at line 581 of file

def cma.query.QueryExecutor.parameter_names (   self)
We return a set of parameters that we expect.
We return None if we are flexible (or don't know) about our expected parameters.

Definition at line 600 of file

def cma.query.QueryExecutor.register (   ourclass)

Definition at line 595 of file

def cma.query.QueryExecutor.result_iterator (   self,
We return an iterator which will yield the results of performing
this query with these parameters.

Definition at line 606 of file

Field Documentation

string cma.query.QueryExecutor.DEFAULT_EXECUTOR_METHOD = 'CypherExecutor'

Definition at line 572 of file

dictionary cma.query.QueryExecutor.EXECUTOR_METHODS = {}

Definition at line 573 of file


Definition at line 578 of file

Referenced by cma.query.CypherExecutor.parameter_names().

The documentation for this class was generated from the following file: