Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SMW\SQLStore\QueryEngine\QuerySegment Class Reference

Public Member Functions

 __construct ()
 
 reset ()
 

Public Attributes

const Q_NOQUERY = 0
 
const Q_TABLE = 1
 
const Q_VALUE = 2
 
const Q_DISJUNCTION = 3
 
const Q_CONJUNCTION = 4
 
const Q_CLASS_HIERARCHY = 5
 
const Q_PROP_HIERARCHY = 6
 
 $type = self::Q_TABLE
 
 $fingerprint = ''
 
 $joinType = ''
 
 $joinTable = ''
 
 $joinfield = ''
 
 $indexField = ''
 
 $from = ''
 
 $where = ''
 
 $components = array()
 
 $alias
 
 $sortfields = array()
 
 $queryNumber
 

Static Public Attributes

static $qnum = 0
 

Detailed Description

Class for representing a single (sub)query description.

GNU GPL v2+

Since
2.2
Author
Markus Krötzsch
Jeroen De Dauw

Constructor & Destructor Documentation

SMW\SQLStore\QueryEngine\QuerySegment::__construct ( )
Since
2.2

Member Function Documentation

SMW\SQLStore\QueryEngine\QuerySegment::reset ( )
Since
2.2

Member Data Documentation

SMW\SQLStore\QueryEngine\QuerySegment::$alias
SMW\SQLStore\QueryEngine\QuerySegment::$components = array()
SMW\SQLStore\QueryEngine\QuerySegment::$fingerprint = ''
SMW\SQLStore\QueryEngine\QuerySegment::$from = ''
SMW\SQLStore\QueryEngine\QuerySegment::$indexField = ''
SMW\SQLStore\QueryEngine\QuerySegment::$joinfield = ''
SMW\SQLStore\QueryEngine\QuerySegment::$joinTable = ''
SMW\SQLStore\QueryEngine\QuerySegment::$joinType = ''
SMW\SQLStore\QueryEngine\QuerySegment::$qnum = 0
static
SMW\SQLStore\QueryEngine\QuerySegment::$queryNumber
SMW\SQLStore\QueryEngine\QuerySegment::$sortfields = array()
SMW\SQLStore\QueryEngine\QuerySegment::$type = self::Q_TABLE
SMW\SQLStore\QueryEngine\QuerySegment::$where = ''
const SMW\SQLStore\QueryEngine\QuerySegment::Q_CLASS_HIERARCHY = 5

Type of query that creates a temporary table of all superclasses of given classes (only joinfield relevant: (disjunctive) array of unquoted values).

const SMW\SQLStore\QueryEngine\QuerySegment::Q_CONJUNCTION = 4

Type of query that is a conjunction of other queries (joinfield/jointable empty; only components relevant).

const SMW\SQLStore\QueryEngine\QuerySegment::Q_DISJUNCTION = 3

Type of query that is a disjunction of other queries (joinfield/jointable empty; only components relevant)

const SMW\SQLStore\QueryEngine\QuerySegment::Q_NOQUERY = 0

Type of empty query without usable condition, dropped as soon as discovered. This is used only during preparing the query (no queries of this type should ever be added).

const SMW\SQLStore\QueryEngine\QuerySegment::Q_PROP_HIERARCHY = 6

Type of query that creates a temporary table of all superproperties of given properties (only joinfield relevant: (disjunctive) array of unquoted values).

const SMW\SQLStore\QueryEngine\QuerySegment::Q_TABLE = 1

Type of query that is a join with a query (jointable: internal table name; joinfield/components/where use alias.fields; from uses external table names, components interpreted conjunctively (JOIN)).

const SMW\SQLStore\QueryEngine\QuerySegment::Q_VALUE = 2

Type of query that matches a constant value (joinfield is a disjunctive array of unquoted values, jointable empty, components empty).


The documentation for this class was generated from the following file: