Package gavo :: Package svcs :: Module pql :: Class PQLPositionPar
[frames] | no frames]

Class PQLPositionPar

source code

object --+    
         |    
    PQLPar --+
             |
            PQLPositionPar

a PQL position parameter, as for SSA.

Cones and intervals or real lists do not mix; we support STC-S identifiers as qualifiers.

The literals here are basically two-float lists.

Nested Classes
  valParser
float(x) -> floating point number

Inherited from PQLPar: rangeClass

Instance Methods
 
getSQL(self, colName, sqlPars)
returns an SQL condition expressing this PQL constraint for colName.
source code
 
getConeSQL(self, colName, sqlPars, coneSize) source code
 
covers(self, value)
returns true if value is within the ranges specified by the PQL expression.
source code

Inherited from PQLPar: __eq__, __init__, __repr__, __str__, getValuesAsSet

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

Class Methods
 
fromLiteral(cls, val, destName)
returns a parsed representation of a literal in PQL range-list syntax.
source code
Static Methods

Inherited from PQLPar: stepParser

Class Variables
  nullvalue = ''
hash(x)
Properties

Inherited from object: __class__

Method Details

fromLiteral(cls, val, destName)
Class Method

source code 

returns a parsed representation of a literal in PQL range-list syntax.

val is a string containing the PQL expression, destName is a name to be used for the LiteralParseErrors the function raises when there are syntax errors in val.

Overrides: PQLPar.fromLiteral
(inherited documentation)

getSQL(self, colName, sqlPars)

source code 

returns an SQL condition expressing this PQL constraint for colName.

The parameters necessary are added to sqlPars.

cmpExpr can be used to override the cmpExpr argument to PQLRange.getSQL; this is not really intended for user code, though, but rather for subclasses of PQLPar

Overrides: PQLPar.getSQL
(inherited documentation)

covers(self, value)

source code 

returns true if value is within the ranges specified by the PQL expression.

value must be type-true, i.e., you are responsible for converting it into the type the range are in.

Overrides: PQLPar.covers
(inherited documentation)