The MongoDB\BSON\MaxKey class
(mongodb >=1.0.0)
Introduction
Special BSON type which compares higher than all other possible BSON element values.
Note:
This is an internal MongoDB type used for indexing and sharding.
Class synopsis
final
class MongoDB\BSON\MaxKey
implements
MongoDB\BSON\MaxKeyInterface, MongoDB\BSON\Type, JsonSerializable {
/* Methods */
}Changelog
| Version | Description |
|---|---|
| PECL mongodb 2.0.0 | This class no longer implements the Serializable interface. |
| PECL mongodb 1.3.0 | Implements MongoDB\BSON\MaxKeyInterface. |
| PECL mongodb 1.2.0 | Implements Serializable and JsonSerializable. |
Table of Contents
- MongoDB\BSON\MaxKey::__construct — Construct a new MaxKey
- MongoDB\BSON\MaxKey::jsonSerialize — Returns a representation that can be converted to JSON
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
