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

Public Member Functions

 __construct (Database $connection, TemporaryTableBuilder $temporaryTableBuilder, HierarchyTempTableBuilder $hierarchyTempTableBuilder)
 
 getListOfResolvedQueries ()
 
 setQuerySegmentList (&$querySegmentList)
 
 setQueryMode ($queryMode)
 
 doResolveQueryDependenciesById ($id)
 
 cleanUp ()
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
Markus Krötzsch
Jeroen De Dauw
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\QueryEngine\QuerySegmentListProcessor::__construct ( Database  $connection,
TemporaryTableBuilder  $temporaryTableBuilder,
HierarchyTempTableBuilder  $hierarchyTempTableBuilder 
)
Parameters
Database$connection
TemporaryTableBuilder$temporaryTableBuilder
HierarchyTempTableBuilder$hierarchyTempTableBuilder

Member Function Documentation

SMW\SQLStore\QueryEngine\QuerySegmentListProcessor::cleanUp ( )

After querying, make sure no temporary database tables are left.

Todo:
I might be better to keep the tables and possibly reuse them later on. Being temporary, the tables will vanish with the session anyway.
SMW\SQLStore\QueryEngine\QuerySegmentListProcessor::doResolveQueryDependenciesById (   $id)

Process stored queries and change store accordingly. The query obj is modified so that it contains non-recursive description of a select to execute for getting the actual result.

Parameters
integer$id
Exceptions
RuntimeException
SMW\SQLStore\QueryEngine\QuerySegmentListProcessor::getListOfResolvedQueries ( )
Since
2.2
Returns
array
SMW\SQLStore\QueryEngine\QuerySegmentListProcessor::setQueryMode (   $queryMode)
Since
2.2
Parameters
integer
SMW\SQLStore\QueryEngine\QuerySegmentListProcessor::setQuerySegmentList ( $querySegmentList)
Since
2.2
Parameters
&$querySegmentList

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