PHP 클래스 Phalcon\Db\Adapter\MongoDB\Operation\Distinct

또한 보기: MongoDB\Collection::distinct()
또한 보기: http://docs.mongodb.org/manual/reference/command/distinct/
상속: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $databaseName, string $collectionName, string $fieldName, array | object $filter = [], array $options = [] ) Constructs a distinct command.
execute ( MongoDB\Driver\Server $server ) : mixed[] Execute the operation.

비공개 메소드들

메소드 설명
createCommand ( MongoDB\Driver\Server $server ) : MongoDB\Driver\Command Create the distinct command.

메소드 상세

__construct() 공개 메소드

Supported options: * maxTimeMS (integer): The maximum amount of time to allow the query to run. * readConcern (MongoDB\Driver\ReadConcern): Read concern. For servers < 3.2, this option is ignored as read concern is not available. * readPreference (MongoDB\Driver\ReadPreference): Read preference.
public __construct ( string $databaseName, string $collectionName, string $fieldName, array | object $filter = [], array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$fieldName string Field for which to return distinct values
$filter array | object Query by which to filter documents
$options array Command options

execute() 공개 메소드

Execute the operation.
또한 보기: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : mixed[]
$server MongoDB\Driver\Server
리턴 mixed[]