Package gavo :: Package adql :: Module common :: Class FieldInfoGetter
[frames] | no frames]

Class FieldInfoGetter

source code

object --+
         |
        FieldInfoGetter
Known Subclasses:

An abstract method to retrieve table metadata.

A subclass of this must be passed into adql.parseAnnotating. Implementations must fill out the getInfosFor(tableName) method, which must return a sequence of (column name, adql.FieldInfo) pairs for the named table.

plain strings for table names will be normalised (lowercased).

Instance Methods
 
__call__(self, tableName) source code
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addExtraFieldInfos(self, tableName, fieldInfos)
adds field infos for tableName.
source code
 
getInfosFor(self, tableName) source code
 
normalizeName(self, tableName) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

addExtraFieldInfos(self, tableName, fieldInfos)

source code 

adds field infos for tableName.

fieldInfos must be a sequence of (columnName, adql.FieldInfo) pairs.

Note that tableName is normalised to lowercase here.