Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hw_mv(3) [php man page]

HW_MV(3)								 1								  HW_MV(3)

hw_mv - Moves objects

SYNOPSIS
int hw_mv (int $connection, array $object_id_array, int $source_id, int $destination_id) DESCRIPTION
Moves the specified objects from a collection to another. PARAMETERS
o $connection - The connection identifier. o $object_id_array - An array of object ids. o $source_id - The source collection id. o $destination_id - The target collection id. If set to 0 the objects will be unlinked from the source collection. If this is the last instance of that object it will be deleted. If you want to delete all instances at once, use hw_deleteobject(3). RETURN VALUES
Returns the number of moved objects. SEE ALSO
hw_cp(3), hw_deleteobject(3). PHP Documentation Group HW_MV(3)

Check Out this Related Man Page

MONGOCOLLECTION.PARALLELCOLLECTIONSCAN(3)				 1				 MONGOCOLLECTION.PARALLELCOLLECTIONSCAN(3)

MongoCollection::parallelCollectionScan - Returns an array of cursors to iterator over a full collection in parallel

SYNOPSIS
public array[MongoCommandCursor] MongoCollection::parallelCollectionScan (int $num_cursors) DESCRIPTION
This method returns an array of a maximum of num_cursors cursors. An iteration over one of the returned cursors results in a partial set of documents for a collection. Iteration over all the returned cursors results in getting every document back from the collection. This method is a wrapper for the parallelCollectionScan MongoDB command. PARAMETERS
o $num_cursors - The number of cursors to request from the server. Please note, that the server can return less cursors than you requested. RETURN VALUES
Returns an array of MongoCommandCursor objects. EXAMPLES
Example #1 MongoCollection.parallelCollectionScan(3) example Returning all documents in a collection by using multiple cursors. <?php $m = new MongoClient; $c = $m->demo->cities; /* Request three cursors */ $cursors = $c->parallelCollectionScan( 3 ); /* Add all the cursors to the MultipleIterator */ $mi = new MultipleIterator( MultipleIterator::MIT_NEED_ANY ); foreach ( $cursors as $cursor ) { $mi->attachIterator( $cursor ); } /* Iterate over all the associated cursors */ foreach ( $mi as $items ) { foreach ( $items as $item ) { if ( $item !== NULL ) { echo $item['name'], " "; } } } ?> SEE ALSO
MultipleIterator, MongoCommandCursor, MongoDB::command. PHP Documentation Group MONGOCOLLECTION.PARALLELCOLLECTIONSCAN(3)
Man Page