The Assimilation Project  based on Assimilation version 1.1.7.1474836767
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

 store
 
 metadata
 

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 query.py.

Constructor & Destructor Documentation

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

Definition at line 575 of file query.py.

Member Function Documentation

def cma.query.QueryExecutor.construct_query (   store,
  metadata 
)
static
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 query.py.

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 query.py.

def cma.query.QueryExecutor.register (   ourclass)
static

Definition at line 595 of file query.py.

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

Definition at line 606 of file query.py.

Field Documentation

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

Definition at line 572 of file query.py.

dictionary cma.query.QueryExecutor.EXECUTOR_METHODS = {}
static

Definition at line 573 of file query.py.

cma.query.QueryExecutor.metadata

Definition at line 578 of file query.py.

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


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