dbfun Package
dbfun Package
Created on Sun Aug 18 22:31:59 2013
@author: thomas
This file only serves to signal that the content of the folder is a Python
package.
dbfun Module
Created on Mon Oct 14 16:59:27 2013
@author: Thomas Schatz
-
class ABXpy.dbfun.dbfun.DBfun(input_names)[source]
Bases: object
-
evaluate(inputs_dict)[source]
-
output_specs()[source]
dbfun_column Module
Created on Fri Dec 20 13:36:52 2013
@author: Thomas Schatz
-
class ABXpy.dbfun.dbfun_column.DBfun_Column(name, db=None, column=None, indexed=True)[source]
Bases: ABXpy.dbfun.dbfun.DBfun
-
evaluate(context)[source]
-
output_specs()[source]
dbfun_compute Module
Created on Mon Oct 14 16:59:27 2013
@author: Thomas Schatz
Class for defining and computing efficiently functions of the columns of a
database.
Implements the DBfun API
-
class ABXpy.dbfun.dbfun_compute.DBfun_Compute(definition, columns)[source]
Bases: ABXpy.dbfun.dbfun.DBfun
-
evaluate(context)[source]
-
output_specs()[source]
-
parse()[source]
first separate the script defining the function into various components
(import statements, with ‘h5file’ statement, synopsis definition, main
code)
-
process_with(tree)[source]
-
class ABXpy.dbfun.dbfun_compute.nameVisitor(*args, **kwargs)[source]
Bases: ast.NodeVisitor
-
visit_Name(node)[source]
dbfun_lookuptable Module
Created on Mon Nov 25 00:24:42 2013
@author: Thomas Schatz
Implements the DBfun API
Basic implementation of database function in lookup tables.
Allows on-the-fly computation by storing script for DBfun_compute alongside the
table.
Allows to store outputs with h5 compatible dtypes either directly or under an
indexed format
Do not implement variable length outputs and requires that the entire lookup
table fits in RAM memory.
-
class ABXpy.dbfun.dbfun_lookuptable.DBfun_LookupTable(filename, synopsis=None, db=None, code=None, indexed=True)[source]
Bases: ABXpy.dbfun.dbfun.DBfun
-
compress_index(indexed_output_name)[source]
-
evaluate(context)[source]
-
fill(data, append=False, iterate=False)[source]
-
get_keys(input_values)[source]
-
initialize_output_dsets(sample_data)[source]
-
load()[source]
-
load_data()[source]
-
load_metadata()[source]
-
output_specs()[source]
-
pack()[source]
-
write(data)[source]
-
ABXpy.dbfun.dbfun_lookuptable.chunk_size(item_size=4, n_columns=1, size_in_mem=400)[source]
-
ABXpy.dbfun.dbfun_lookuptable.get_dtype(data)[source]
lookuptable_connector Module
Created on Tue Nov 12 02:25:17 2013
@author: Thomas Schatz
-
class ABXpy.dbfun.lookuptable_connector.LookupTableConnector(script, aux_functions, aliases, *args, **kwargs)[source]
Bases: ast.NodeTransformer
-
bundle_call_info(node, call_node)[source]
-
check_Call(node)[source]
-
check_Subscript(node, func_name)[source]
-
check_flatness(node)[source]
-
generic_visit(node)[source]
-
visit_Call(node)[source]
-
visit_Subscript(node)[source]