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
 
 $depth
 
 $fingerprint = ''
 
 $null = false
 
 $not = false
 
 $joinType = ''
 
 $joinTable = ''
 
 $joinfield = ''
 
 $indexField = ''
 
 $from = ''
 
 $where = ''
 
 $components = []
 
 $alias
 
 $sortfields = []
 
 $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

◆ __construct()

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

Member Function Documentation

◆ reset()

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

Member Data Documentation

◆ Q_CLASS_HIERARCHY

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).

◆ Q_CONJUNCTION

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

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

◆ Q_DISJUNCTION

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

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

◆ Q_NOQUERY

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).

◆ Q_PROP_HIERARCHY

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).

◆ Q_TABLE

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)).

◆ Q_VALUE

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:

About | General disclaimer | Privacy policy