Package gavo :: Package adql :: Module nodes :: Class SetFunction
[frames] | no frames]

Class SetFunction

source code

                     object --+    
                              |    
               TransparentMixin --+
                                  |
             object --+           |
                      |           |
utils.autonode.AutoNode --+       |
                          |       |
                   ADQLNode --+   |
                              |   |
                FieldInfoedNode --+
                                  |
                                 SetFunction

An aggregate function.

These typically amend the ucd by a word from the stat family and copy over the unit. There are exceptions, however, see table in class def.

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
addFieldInfo(self, context) source code
 
__init__(self, children=())
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from FieldInfoedNode: change

Inherited from ADQLNode: __repr__, asTree, flatten, getFlattenedChildren, iterTree

Inherited from utils.autonode.AutoNode: iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods

Inherited from ADQLNode: fromParseResult

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables
  type = 'setFunctionSpecification'
hash(x)
  funcDefs = {'AVG': ('%s;stat.mean', None, 'double precision'),...

Inherited from FieldInfoedNode: fieldInfo

Properties

Inherited from object: __class__

Method Details

addFieldInfo(self, context)

source code 
Overrides: FieldInfoedNode.addFieldInfo

__init__(self, children=())
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details

funcDefs

Value:
{'AVG': ('%s;stat.mean', None, 'double precision'),
 'COUNT': ('meta.number;%s', '', 'integer'),
 'MAX': ('%s;stat.max', None, None),
 'MIN': ('%s;stat.min', None, None),
 'SUM': (None, None, None)}