« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for majority (0.001 sec.)
The MongoDB\Driver\ReadConcern class | PHP 8.3 13915
The MongoDB\Driver\ReadConcern class (mongodb >=1.1.0) はじめに MongoDB\Driver\ReadConcern controls the level of isolation for read operations for replica sets and replica set shards. This option requires MongoDB 3.2 or later. クラス概要 fi ... string AVAILABLE = "available" ; const string LINEARIZABLE = "linearizable" ; const string LOCAL = "local" ; const string MAJORITY = "majority" ; const string SNAPSHOT = "snapshot" ; /* メソッド */ final public function bsonSerialize (): stdClass final ... unspecified. The query returns the instance's most recent data. Provides no guarantee that the data has been written to a majority of the replica set members (i.e. may be rolled back). For unsharded collections (including collections in a standalone dep ... river\ReadConcern::LINEARIZABLE The query returns data that reflects all successful writes issued with a write concern of "majority" and acknowledged prior to the start of the read operation. For replica sets that run with writeConcernMajorityJournalDefa ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readconcern.html
The MongoDB\Driver\WriteConcern class | PHP 8.3 10710
The MongoDB\Driver\WriteConcern class (mongodb >=1.0.0) はじめに MongoDB\Driver\WriteConcern describes the level of acknowledgement requested from MongoDB for write operations to a standalone mongod or to replica sets or to sharded clusters ... ス概要 final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable , Serializable { /* 定数 */ const string MAJORITY = "majority" ; /* プロパティ */ public readonly string | int | null $ w ; public readonly ? bool $ j ; public readonly int ... int final public function isDefault (): bool } プロパティ w The write concern value (integer number of nodes, the string "majority" , or a custom write concern tag name), or null if not set. j Whether write operations must be committed to the journal be ... wait for write concern acknowledgement. A value of 0 means to wait indefinitely. 定義済み定数 MongoDB\Driver\WriteConcern::MAJORITY Majority of all the members in the set; arbiters, non-voting members, passive members, hidden members and delayed members ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeconcern.html
MongoDB\Driver\WriteConcern::__construct — Create a new WriteConcern | PHP 8.3 9892
MongoDB\Driver\WriteConcern::__construct (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::__construct — Create a new WriteConcern 説明 final public function MongoDB\Driver\WriteConcern::__construct ( string | int $w , ? int $wtimeout = null , ... lica sets to request acknowledgement from specified number of members, including the primary. MongoDB\Driver\WriteConcern::MAJORITY Requests acknowledgment that write operations have propagated to the majority of voting nodes, including the primary, and ... have been written to the on-disk journal for these nodes. Prior to MongoDB 3.0, this refers to the majority of replica set members (not just voting nodes). string A string value is interpereted as a tag set. Requests acknowledgeme ... s 64-bit values. 例 例1 MongoDB\Driver\WriteConcern::__construct() example <?php /* Request write acknowledgement from the majority of the replica set nodes */ $wc = new MongoDB\Driver\WriteConcern ( MongoDB\Driver\WriteConcern :: MAJORITY , 500 ); /* Re ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.construct.html
MongoDB\Driver\WriteConcern::bsonSerialize — Returns an object for BSON seriali... 9700
MongoDB\Driver\WriteConcern::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\WriteConcern::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\WriteConcern::bsonSerialize (): stdClass パラメータ ... er\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteConcern::bsonSerialize() with majority write concern <?php $wc = new MongoDB\Driver\WriteConcern ( MongoDB\Driver\WriteConcern :: MAJORITY ); var_dump ( $wc -> b ... > toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (1) { ["w"]=> string(8) "majority" } { "w" : "majority" } 例2 MongoDB\Driver\WriteConcern::bsonSerialize() with wtimeout and journal <?php $wc = new MongoDB ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.bsonserialize.html
MongoDB\Driver\WriteConcern::getW — Returns the WriteConcern's "w" option | PHP... 8586
MongoDB\Driver\WriteConcern::getW (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::getW — Returns the WriteConcern's "w" option 説明 final public function MongoDB\Driver\WriteConcern::getW (): string | int | null パラメータ この関数にはパラメ ... ver\WriteConcern ( 1 ); var_dump ( $wc -> getW ()); $wc = new MongoDB\Driver\WriteConcern ( MongoDB\Driver\WriteConcern :: MAJORITY ); var_dump ( $wc -> getW ()); ?> 上の例の出力は以下となります。 int(1) string(8) "majority" 参考 » Write Concern referenc ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.getw.html
MongoDB\Driver\ReadConcern::__construct — Create a new ReadConcern | PHP 8.3 8516
MongoDB\Driver\ReadConcern::__construct (mongodb >=1.0.0) MongoDB\Driver\ReadConcern::__construct — Create a new ReadConcern 説明 final public function MongoDB\Driver\ReadConcern::__construct ( ? string $level = null ) Constructs a new Mong ... set node */ $rc = new MongoDB\Driver\ReadConcern ( MongoDB\Driver\ReadConcern :: LOCAL ); /* Request read isolation from a majority of the replica set nodes */ $rc = new MongoDB\Driver\ReadConcern ( MongoDB\Driver\ReadConcern :: MAJORITY ); ?> 参考 » Rea ...
https://man.mtool.work/php/8.3/mongodb-driver-readconcern.construct.html
MongoDB\Driver\ReadConcern::getLevel — Returns the ReadConcern's "level" option... 8516
MongoDB\Driver\ReadConcern::getLevel (mongodb >=1.0.0) MongoDB\Driver\ReadConcern::getLevel — Returns the ReadConcern's "level" option 説明 final public function MongoDB\Driver\ReadConcern::getLevel (): ? string パラメータ この関数にはパラメ ... adConcern :: LOCAL ); var_dump ( $rc -> getLevel ()); $rc = new MongoDB\Driver\ReadConcern ( MongoDB\Driver\ReadConcern :: MAJORITY ); var_dump ( $rc -> getLevel ()); ?> 上の例の出力は以下となります。 NULL string(5) "local" string(8) "majority" 参考 » Re ...
https://man.mtool.work/php/8.3/mongodb-driver-readconcern.getlevel.html
MongoDB\Driver\Manager::getWriteConcern — Return the WriteConcern for the Manag... 8324
MongoDB\Driver\Manager::getWriteConcern (mongodb >=1.0.0) MongoDB\Driver\Manager::getWriteConcern — Return the WriteConcern for the Manager 説明 final public function MongoDB\Driver\Manager::getWriteConcern (): MongoDB\Driver\WriteConcern R ... 7017' ); var_dump ( $manager -> getWriteConcern ()); $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:27017/?w=majority&wtimeoutMS=2000' ); var_dump ( $manager -> getWriteConcern ()); ?> 上の例の出力は、 たとえば以下のようになります。 object( ... MongoDB\Driver\WriteConcern)#2 (0) { } object(MongoDB\Driver\WriteConcern)#1 (2) { ["w"]=> string(8) "majority" ["wtimeout"]=> int(2000) } 参考 MongoDB\Driver\WriteConcern MongoDB\Driver\Manager::__construct() - Create new MongoDB Ma ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.getwriteconcern.html
MongoDB\Driver\ReadConcern::isDefault — Checks if this is the default read conc... 8202
MongoDB\Driver\ReadConcern::isDefault (mongodb >=1.3.0) MongoDB\Driver\ReadConcern::isDefault — Checks if this is the default read concern 説明 final public function MongoDB\Driver\ReadConcern::isDefault (): bool Returns whether this is the ... eadConcern ( null ); var_dump ( $rc -> isDefault ()); $rc = new MongoDB\Driver\ReadConcern ( MongoDB\Driver\ReadConcern :: MAJORITY ); var_dump ( $rc -> isDefault ()); $manager = new MongoDB\Driver\Manager ( 'mongodb://127.0.0.1/?readConcernLevel=majorit ...
https://man.mtool.work/php/8.3/mongodb-driver-readconcern.isdefault.html
MongoDB\Driver\WriteConcern::getWtimeout — Returns the WriteConcern's "wtimeout... 7697
MongoDB\Driver\WriteConcern::getWtimeout (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::getWtimeout — Returns the WriteConcern's "wtimeout" option 説明 final public function MongoDB\Driver\WriteConcern::getWtimeout (): int パラメータ この関 ... teConcern ( 1 ); var_dump ( $wc -> getWtimeout ()); $wc = new MongoDB\Driver\WriteConcern ( MongoDB\Driver\WriteConcern :: MAJORITY , 3000 ); var_dump ( $wc -> getWtimeout ()); ?> 上の例の出力は以下となります。 int(0) int(3000) 参考 » Write Concern refer ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.getwtimeout.html
PREV 1 2 NEXT