Package sqltriples :: Module Query :: Class Results
[show private | hide private]
[frames | no frames]

Class Results

AbstractQuery --+    
                |    
            Query --+
                    |
                   Results

Known Subclasses:
CountableResults, SingleResults, Triples, Tuples

A class representing a selection of results obtained by specifying a
pattern.

Method Summary
  __init__(self, store, pattern, expression, functions, ordering, order_by, limit, partial)
Initialise the results object with the given 'store', 'pattern', optional 'expression', optional 'ordering' and 'order_by' descriptions and optional 'limit' criteria.
    Inherited from Query
  __getitem__(self, i)
  __len__(self)
  __repr__(self)
  get_query(self, index, constraints)
Return a query clause, associated values, and an updated table index (as a 3-tuple) for this object's query defined using the given table 'index' and the supplied, optional 'constraints' text.
  get_subquery(self, parent_columns, parent_index, index, match_first, match_parent, match_child)
Make a subquery for this object using the given 'parent_columns' (indicating the columns which connect with this object's exposed columns), a 'parent_index' (indicating the table index used in the parent query, within which the returned query clause shall be employed), and the current table 'index'.

Class Variable Summary
    Inherited from AbstractQuery
list table_columns = [('subject', 'subject_type', 0), ('predi...

Method Details

__init__(self, store, pattern, expression=None, functions=None, ordering=None, order_by=None, limit=None, partial=0)
(Constructor)

Initialise the results object with the given 'store', 'pattern',
optional 'expression', optional 'ordering' and 'order_by' descriptions
and optional 'limit' criteria. Where a 'partial' result is requested,
outer joins will be employed to find tuples which are shorter than the
pattern.
Overrides:
sqltriples.Query.Query.__init__

Generated by Epydoc 2.1 on Fri Jan 12 00:04:34 2007 http://epydoc.sf.net