Sponsored Content
Contact Us Forum Support Area for Unregistered Users & Account Problems Believe answer to one of your questions is wrong re definition of <MOVED TO ADMIN AREA> Post 303044326 by Mike Baran on Wednesday 19th of February 2020 10:08:13 AM
Old 02-19-2020
Believe answer to one of your questions is wrong re definition of <MOVED TO ADMIN AREA>

Moderator's Comments:
Mod Comment Neo: I have copied this post to the admin forum so we do not start posting answers to questions in public forums, which will take the fun out of playing computer trivia. Iwill check the DB and get back to you, Mike Baran. In the future, the most important thing when anyone suspects an issue with a true /false statement is to record the trivia number. There are currently over 1000 questions and so we need the number to save time checking the DB. As always,, thanks! I will post back here the results of my research into this (done, see post #3 below).
Mike Baran
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What wrong with the variable definition

i am using the below script and trying to move files in that directory in that pattern to archive. But it doesn;t seem to take the metacharacters. Please sugggest. Code Debug output: (1 Reply)
Discussion started by: dsravan
1 Replies

2. UNIX for Dummies Questions & Answers

can any one please answer these questions

6.nohup cmn is used to Prot execn of pgm frm aborting when hangup s/g is rxd Not hangup modem Disconn a node frm s/m Chng execn prev of pgm .wat is the o/p? Cut -d”” -f3 file1/sort -r Display 3rd col of file 1 in asc order Disp 3rd col of file 1 in desc Not ... (1 Reply)
Discussion started by: techguru
1 Replies

3. Shell Programming and Scripting

How to answer the Questions in Perl .

I need to write a script to telnet or ssh a device the execute some commands in device then copy the output in a file, I wrote the script but I faced one issue, when you execute some commands the device asked me a Question, for example : device # copy run tftp device # Source filename ? ... (3 Replies)
Discussion started by: DarkSoul
3 Replies

4. Solaris

Please give me answer for these interview questions.

As i'm going to attend my first interview day after tomorrow, What should i need to answer if the interviewer asked me about 1. Tell me about your production environment. 2. What about your team size? 3. Tell me about the most critical situation/issue you have ever faced. Can any... (10 Replies)
Discussion started by: Sesha
10 Replies

5. UNIX for Dummies Questions & Answers

Need answer for these LINUX questions URGENT!!

I am very new to LINUX and could not find answer to these questions please submit your comments and suggestions to answer these questions. Appreciate your time thank you, :) If you look at the permissions associated with a symbolic link, it has universal access. Does this lead to security... (0 Replies)
Discussion started by: linux17
0 Replies

6. UNIX for Dummies Questions & Answers

Need answer for these LINUX questions URGENT!!

I am very new to LINUX and could not find answer to these questions please submit your comments and suggestions to answer these questions. Appreciate your time thank you, :) 1. Make sure there is no filename1.txt in current directory first. Now, enter vi with "vi filename1.txt" command. vi... (4 Replies)
Discussion started by: linux17
4 Replies

7. Solaris

==please answer the following questions==

Hello :) ! i've few doubts. 1) how can we find the newly attached disk in SOLARIS ? 2) how to change port number of a service ? 3) how can we find that autofs is running in our system without using svcs and prstat commands ? 4) we know that there are several types of dns servers in... (0 Replies)
Discussion started by: vamshigvk475
0 Replies
MONGOCOMMANDCURSOR(3)							 1						     MONGOCOMMANDCURSOR(3)

The MongoCommandCursor class

INTRODUCTION
A command cursor is similar to a MongoCursor except that you use it for iterating through the results of a database command instead of a normal query. Command cursors are useful for iterating over large result sets that might exceed the document size limit (currently 16MB) of a single MongoDB.command(3) response. While you can create command cursors using MongoCommandCursor.__construct(3) or the MongoCommandCursor.createFromDocument(3) factory method, you will generally want to use command-specific helpers such as MongoCollection.aggregateCursor(3). Note that the cursor does not "contain" the database command's results; it just manages iteration through them. Thus, if you print a cur- sor (f.e. with var_dump(3) or print_r(3)), you will see the cursor object but not the result documents. CURSOR STAGES
A MongoCommandCursor has two "life stages": pre- and post- command. When a cursor is created, it has not yet contacted the database, so it is in its pre-command state. When the client first attempts to get a result (by calling MongoCommandCursor.rewind(3), directly or indi- rectly), the cursor moves into the post-command state. The command cursor's batch size and socket timeout may be configured in both the pre- and post- command states. Example #1 Adding options to MongoCommandCursor <?php $cursor = new MongoCommandCursor(...); $cursor = $cursor->batchSize( 4 ); foreach ($cursor as $result) { var_dump($result); } ?> CLASS SYNOPSIS
MongoCommandCursor MongoCommandCursorMongoCursorInterfaceIterator Methods o public MongoCommandCursor MongoCommandCursor::batchSize (int $batchSize) o public MongoCommandCursor::__construct (MongoClient $connection, string $ns, array $command = array()) o publicstatic MongoCommandCursor MongoCommandCursor::createFromDocument (MongoClient $connection, string $hash, array $document) o public array MongoCommandCursor::current (void ) o public bool MongoCommandCursor::dead (void ) o public array MongoCommandCursor::getReadPreference (void ) o public array MongoCommandCursor::info (void ) o public int MongoCommandCursor::key (void ) o public void MongoCommandCursor::next (void ) o public array MongoCommandCursor::rewind (void ) o public MongoCommandCursor MongoCommandCursor::setReadPreference (string $read_preference, [array $tags]) o public MongoCommandCursor MongoCommandCursor::timeout (int $ms) o public bool MongoCommandCursor::valid (void ) SEE ALSO
o MongoDB::command o MongoCollection::aggregateCursor PHP Documentation Group MONGOCOMMANDCURSOR(3)
All times are GMT -4. The time now is 04:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy