Class

eZ\Publish\Core\Search\Elasticsearch\Content\Location\SortClauseVisitor\Aggregate

class Aggregate extends SortClauseVisitor

Aggregate sort clause visitor.

Methods

bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current SortClause.

mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

__construct(array $visitors = array())

Construct from optional visitor array.

addVisitor(SortClauseVisitor $visitor)

Adds visitor.

Details

at line 56
public bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current SortClause.

Parameters

SortClause $sortClause

Return Value

bool

at line 70
public mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

Parameters

SortClause $sortClause

Return Value

mixed Hash representation of Elasticsearch sort

Exceptions

NotImplementedException

at line 32
public __construct(array $visitors = array())

Construct from optional visitor array.

Parameters

array $visitors

at line 44
public addVisitor(SortClauseVisitor $visitor)

Adds visitor.

Parameters

SortClauseVisitor $visitor