Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Doctrine
MongoDB
Aggregation
Stage
sample
Doctrine\MongoDB\Aggregation\Stage::sample PHP Method
Stage Class Documentation
Datei anzeigen
Open project: doctrine/mongodb
sample()
public
method
Randomly selects the specified number of documents from its input.
See also:
https://docs.mongodb.org/manual/reference/operator/aggregation/sample/
public
sample
(
integer
$size
) :
Doctrine\MongoDB\Aggregation\Stage\Sample
$size
integer
return
Doctrine\MongoDB\Aggregation\Stage\Sample
public function sample($size) { return $this->builder->sample($size); }
Stage
__construct
execute
geoNear
getExpression
getPipeline
group
indexStats
limit
lookup
match
out
project
redact
sample
skip
sort
unwind