- Changed header comments in modules
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@287 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
f8b0ab746b
commit
b4dffea5cf
@ -16,19 +16,18 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||||
|
#
|
||||||
'''This module contains functions to perform various optimizations on the expression trees.
|
# This module contains functions to perform various optimizations on the expression trees.
|
||||||
The list general_optimizations contains pointers to general functions, so they can be called
|
# The list general_optimizations contains pointers to general functions, so they can be called
|
||||||
within a cycle.
|
# within a cycle.
|
||||||
|
#
|
||||||
It is possible to add new general optimizations by adding the function in the list
|
# It is possible to add new general optimizations by adding the function in the list
|
||||||
general_optimizations present in this module. And the optimization will be executed with the
|
# general_optimizations present in this module. And the optimization will be executed with the
|
||||||
other ones when optimizing.
|
# other ones when optimizing.
|
||||||
|
#
|
||||||
A function will have one parameter, which is the root node of the tree describing the expression.
|
# A function will have one parameter, which is the root node of the tree describing the expression.
|
||||||
The class used is defined in optimizer module.
|
# The class used is defined in optimizer module.
|
||||||
A function will have to return the number of changes performed on the tree.
|
# A function will have to return the number of changes performed on the tree.
|
||||||
'''
|
|
||||||
|
|
||||||
import optimizer
|
import optimizer
|
||||||
import parser
|
import parser
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||||
|
#
|
||||||
'''This module optimizes relational expressions into ones that require less time to be executed.
|
# This module optimizes relational expressions into ones that require less time to be executed.
|
||||||
|
#
|
||||||
expression: In all the functions expression can be either an UTF-8 encoded string, containing a valid
|
# expression: In all the functions expression can be either an UTF-8 encoded string, containing a valid
|
||||||
relational query, or it can be a parse tree for a relational expression (ie: class parser.node).
|
# relational query, or it can be a parse tree for a relational expression (ie: class parser.node).
|
||||||
The functions will always return a string with the optimized query, but if a parse tree was provided,
|
# The functions will always return a string with the optimized query, but if a parse tree was provided,
|
||||||
the parse tree itself will be modified accordingly.'''
|
# the parse tree itself will be modified accordingly.
|
||||||
|
|
||||||
import optimizations
|
import optimizations
|
||||||
import parser
|
import parser
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||||
|
#
|
||||||
'''This module offers capability of executing relational queries in parallel.'''
|
# This module offers capability of executing relational queries in parallel.
|
||||||
|
|
||||||
import optimizer
|
import optimizer
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||||
|
#
|
||||||
|
# This module provides a classes to represent relations and to perform
|
||||||
|
# relational operations on them.
|
||||||
|
|
||||||
from rtypes import *
|
from rtypes import *
|
||||||
import csv
|
import csv
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||||
|
#
|
||||||
'''Custom types for relational algebra.
|
# Custom types for relational algebra.
|
||||||
Purpose of this module is having the isFloat function and
|
# Purpose of this module is having the isFloat function and
|
||||||
implementing dates to use in selection.'''
|
# implementing dates to use in selection.
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
|
Loading…
x
Reference in New Issue
Block a user