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

Public Member Functions

 __construct (Store $store, DescriptionInterpreterFactory $descriptionInterpreterFactory)
 
 isFilterDuplicates ($isFilterDuplicates)
 
 getStore ()
 
 setSortKeys ($sortKeys)
 
 getSortKeys ()
 
 getCircularReferenceGuard ()
 
 findQuerySegment ($id)
 
 getQuerySegmentList ()
 
 addQuerySegment (QuerySegment $query)
 
 getLastQuerySegmentId ()
 
 getErrors ()
 
 addError ($error, $type=Message::TEXT)
 
 getQuerySegmentFrom (Description $description)
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
Markus Krötzsch
Jeroen De Dauw
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::__construct ( Store  $store,
DescriptionInterpreterFactory  $descriptionInterpreterFactory 
)
Since
2.2
Parameters
Store$store
DescriptionInterpreterFactory$descriptionInterpreterFactory

Member Function Documentation

SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::addError (   $error,
  $type = Message::TEXT 
)
Since
2.2
Parameters
string$error
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::addQuerySegment ( QuerySegment  $query)
Since
2.2
Parameters
QuerySegment$query
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::findQuerySegment (   $id)
Since
2.2
Parameters
int$id
Returns
QuerySegment
Exceptions
InvalidArgumentException
OutOfBoundsException
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getCircularReferenceGuard ( )
Since
2.2
Returns
CircularReferenceGuard
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getErrors ( )
Since
2.2
Returns
array
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getLastQuerySegmentId ( )
Since
2.2
Returns
integer
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getQuerySegmentFrom ( Description  $description)

Create a new QueryContainer object that can be used to obtain results for the given description. The result is stored in $this->queries using a numeric key that is returned as a result of the function. Returns -1 if no query was created.

Parameters
Description$description
Returns
integer
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getQuerySegmentList ( )
Since
2.2
Returns
QuerySegment[]
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getSortKeys ( )
Since
2.2
Returns
string[]
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::getStore ( )
Since
2.2
Returns
Store
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::isFilterDuplicates (   $isFilterDuplicates)

Filter dulicate segments that represent the same query and to be identified by the same hash.

Since
2.5
Parameters
boolean$isFilterDuplicates
SMW\SQLStore\QueryEngine\QuerySegmentListBuilder::setSortKeys (   $sortKeys)
Since
2.2
Parameters
array$sortKeys
Returns
$this

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