A Vert.x service used to interact with MongoDB server instances.
Some of the operations might change _id field of passed document.
package |
Default |
---|
__construct()
aggregate( $arg0, $arg1) : \io\vertx\jphp\ext\mongo\ReadStream<JsonObject>
string
array
\io\vertx\jphp\ext\mongo\ReadStream
aggregateWithOptions( $arg0, $arg1, $arg2) : \io\vertx\jphp\ext\mongo\ReadStream<JsonObject>
string
array
AggregateOptions | array
\io\vertx\jphp\ext\mongo\ReadStream
bulkWrite( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
bulkWriteWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
BulkWriteOptions | array
callable
$this
close() : void
count( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
createCollection( $arg0, $arg1) : $this
string
callable
$this
createIndex( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
createIndexWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
IndexOptions | array
callable
$this
createNonShared( $arg0, $arg1) : \io\vertx\jphp\ext\mongo\MongoClient
createShared( $arg0, $arg1, $arg2 = null) : \io\vertx\jphp\ext\mongo\MongoClient
param $vertx [Vertx] the Vert.x instance param $config [array] the configuration createShared($vertx, $config)
Create a Mongo client which shares its data source with any other Mongo clients created with the same data source name
param $vertx [Vertx] the Vert.x instance param $config [array] the configuration param $dataSourceName [string] the data source name createShared($vertx, $config, $dataSourceName)
Vertx
array
string
\io\vertx\jphp\ext\mongo\MongoClient
the client
distinct( $arg0, $arg1, $arg2, $arg3) : $this
Return a JsonArray containing distinct values (eg: [ 1 , 89 ])
string
string
string
callable
$this
distinctBatch( $arg0, $arg1, $arg2) : \io\vertx\jphp\ext\mongo\ReadStream<JsonObject>
This method use batchCursor for returning each found value. Each value is a json fragment with fieldName key (eg: {"num": 1}).
string
string
string
\io\vertx\jphp\ext\mongo\ReadStream
a {@link ReadStream} emitting json fragments
distinctBatchWithQuery( $arg0, $arg1, $arg2, $arg3, $arg4 = null) : \io\vertx\jphp\ext\mongo\ReadStream<JsonObject>
This method use batchCursor for returning each found value. Each value is a json fragment with fieldName key (eg: {"num": 1}).
param $collection [string] the collection param $fieldName [string] the field name param $resultClassname [string] param $query [array] the query distinctBatchWithQuery($collection, $fieldName, $resultClassname, $query)
Gets the distinct values of the specified field name filtered by specified query. This method use batchCursor for returning each found value. Each value is a json fragment with fieldName key (eg: {"num": 1}).
param $collection [string] the collection param $fieldName [string] the field name param $resultClassname [string] param $query [array] the query param $batchSize [integer] the number of documents to load in a batch distinctBatchWithQuery($collection, $fieldName, $resultClassname, $query, $batchSize)
string
string
string
array
integer
\io\vertx\jphp\ext\mongo\ReadStream
a {@link ReadStream} emitting json fragments
distinctWithQuery( $arg0, $arg1, $arg2, $arg3, $arg4) : $this
Return a JsonArray containing distinct values (eg: [ 1 , 89 ])
string
string
string
array
callable
$this
dropCollection( $arg0, $arg1) : $this
string
callable
$this
dropIndex( $arg0, $arg1, $arg2) : $this
string
string
callable
$this
find( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
findBatch( $arg0, $arg1) : \io\vertx\jphp\ext\mongo\ReadStream<JsonObject>
This method use batchCursor for returning each found document.
string
array
\io\vertx\jphp\ext\mongo\ReadStream
a {@link ReadStream} emitting found documents
findBatchWithOptions( $arg0, $arg1, $arg2) : \io\vertx\jphp\ext\mongo\ReadStream<JsonObject>
This method use batchCursor for returning each found document.
string
array
FindOptions | array
\io\vertx\jphp\ext\mongo\ReadStream
a {@link ReadStream} emitting found documents
findOne( $arg0, $arg1, $arg2, $arg3) : $this
string
array
array
callable
$this
findOneAndDelete( $arg0, $arg1, $arg2) : $this
This operation might change _id field of query parameter
string
array
callable
$this
findOneAndDeleteWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
This operation might change _id field of query parameter
string
array
FindOptions | array
callable
$this
findOneAndReplace( $arg0, $arg1, $arg2, $arg3) : $this
This operation might change _id field of query parameter
string
array
array
callable
$this
findOneAndReplaceWithOptions( $arg0, $arg1, $arg2, $arg3, $arg4, $arg5) : $this
This operation might change _id field of query parameter
string
array
array
FindOptions | array
array | UpdateOptions
callable
$this
findOneAndUpdate( $arg0, $arg1, $arg2, $arg3) : $this
This operation might change _id field of query parameter
string
array
array
callable
$this
findOneAndUpdateWithOptions( $arg0, $arg1, $arg2, $arg3, $arg4, $arg5) : $this
This operation might change _id field of query parameter
string
array
array
FindOptions | array
array | UpdateOptions
callable
$this
findWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
FindOptions | array
callable
$this
getCollections( $arg0) : $this
callable
$this
insert( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
insertWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
string
callable
$this
listIndexes( $arg0, $arg1) : $this
string
callable
$this
remove( $arg0, $arg1, $arg2) : $this
deprecated |
---|
string
array
callable
$this
removeDocument( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
removeDocuments( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
removeDocumentsWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
string
callable
$this
removeDocumentWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
string
callable
$this
removeOne( $arg0, $arg1, $arg2) : $this
deprecated |
---|
string
array
callable
$this
removeOneWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
deprecated |
---|
string
array
string
callable
$this
removeWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
deprecated |
---|
string
array
string
callable
$this
replace( $arg0, $arg1, $arg2, $arg3) : $this
deprecated |
---|
string
array
array
callable
$this
replaceDocuments( $arg0, $arg1, $arg2, $arg3) : $this
string
array
array
callable
$this
replaceDocumentsWithOptions( $arg0, $arg1, $arg2, $arg3, $arg4) : $this
string
array
array
array | UpdateOptions
callable
$this
replaceWithOptions( $arg0, $arg1, $arg2, $arg3, $arg4) : $this
deprecated |
---|
string
array
array
array | UpdateOptions
callable
$this
runCommand( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
save( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
saveWithOptions( $arg0, $arg1, $arg2, $arg3) : $this
string
array
string
callable
$this
update( $arg0, $arg1, $arg2, $arg3) : $this
deprecated |
---|
string
array
array
callable
$this
updateCollection( $arg0, $arg1, $arg2, $arg3) : $this
string
array
array
callable
$this
updateCollectionWithOptions( $arg0, $arg1, $arg2, $arg3, $arg4) : $this
string
array
array
array | UpdateOptions
callable
$this
updateWithOptions( $arg0, $arg1, $arg2, $arg3, $arg4) : $this
deprecated |
---|
string
array
array
array | UpdateOptions
callable
$this
DEFAULT_POOL_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_DB_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|