Skip to content
Browse files

link normalizing final

  • Loading branch information...
1 parent 033c347 commit ba05e2754d01527764a1c94fb7255a0a9f70a1d3 @tychoish tychoish committed
Showing with 111 additions and 123 deletions.
  1. +1 −0 .gitignore
  2. +25 −25 source/drivers.txt
  3. 0 source/drivers/{sql-to-mongo-shell-to-cpp.txt → cpp-to-sql-to-mongo-shell.txt}
  4. 0 source/drivers/{cpp-driver-library.txt → cpp.txt}
  5. 0 source/drivers/{java-driver-concurrency.txt → java-concurrency.txt}
  6. 0 source/drivers/{java-driver-replica-set-semantics.txt → java-replica-set-semantics.txt}
  7. 0 source/drivers/{perl-driver-internals.txt → perl-internals.txt}
  8. 0 source/drivers/{php-libraries-frameworks-and-tools.txt → php-libraries.txt}
  9. 0 source/drivers/{ruby-external-resources.txt → ruby-resources.txt}
  10. +17 −31 source/index.txt
  11. +2 −2 source/platforms.txt
  12. +1 −1 source/platforms/vmware-cloud-foundry.txt
  13. +2 −2 source/platforms/windows-azure.txt
  14. +1 −1 source/platforms/{windows-quick-links-and-reference-center.txt → windows.txt}
  15. +6 −6 source/tools.txt
  16. 0 source/tools/{hadoop-connector.txt → hadoop.txt}
  17. 0 source/tools/{munin-configuration-examples.txt → munin.txt}
  18. 0 source/tools/{wireshark-support-for-mongodb-protocol.txt → wireshark.txt}
  19. +5 −4 source/tutorial/automate-deployment-with-cloudformation.txt
  20. 0 source/tutorial/{ec2-backup-and-restore.txt → backup-and-restore-mongodb-on-amazon-ec2.txt}
  21. 0 source/tutorial/{getting-started-with-rails-3.txt → getting-started-with-ruby-on-rails-3.txt}
  22. +2 −2 source/tutorial/{getting-started-with-rails.txt → getting-started-with-ruby-on-rails.txt}
  23. 0 source/tutorial/{mongodb-data-modeling-and-rails.txt → model-data-for-ruby-on-rails.txt}
  24. 0 ...rial/{java-driver-and-aggregation-framework.txt → use-aggregation-framework-with-java-driver.txt}
  25. +30 −30 source/tutorial/{csharp-driver-tutorial.txt → use-csharp-driver.txt}
  26. 0 source/tutorial/{java-dbobject-to-perform-saves.txt → use-java-dbobject-to-perform-saves.txt}
  27. +19 −19 source/tutorial/{csharp-driver-linq-tutorial.txt → use-linq-queries-with-csharp-driver.txt}
  28. 0 source/use-cases/{hadoop-and-mongodb-use-cases.txt → hadoop.txt}
View
1 .gitignore
@@ -3,3 +3,4 @@ build/
source/includes/table-*rst
source/images/*
DS_Store
+.#*
View
50 source/drivers.txt
@@ -8,7 +8,7 @@ C
.. toctree::
:maxdepth: 1
- drivers/c-driver-library
+ drivers/c
C++
---
@@ -16,10 +16,10 @@ C++
.. toctree::
:maxdepth: 1
- drivers/cpp-driver-library
+ drivers/cpp
tutorial/download-and-compile-cpp-driver
tutorial/getting-started-with-cpp-driver
- drivers/sql-to-mongo-shell-to-cpp
+ drivers/cpp-to-sql-to-mongo-shell
drivers/cpp-bson-helper-functions
drivers/cpp-bson-array-examples
@@ -29,12 +29,12 @@ C#
.. toctree::
:maxdepth: 1
- drivers/csharp-language-center
+ drivers/csharp
drivers/csharp-community-projects
tutorial/getting-started-with-csharp-driver
- tutorial/csharp-driver-linq-tutorial
+ tutorial/use-linq-queries-with-csharp-driver
tutorial/serialize-documents-with-the-csharp-driver
- tutorial/csharp-driver-tutorial
+ tutorial/use-csharp-driver
Erlang
------
@@ -42,7 +42,7 @@ Erlang
.. toctree::
:maxdepth: 1
- drivers/erlang-language-center
+ drivers/erlang
Java
----
@@ -50,13 +50,13 @@ Java
.. toctree::
:maxdepth: 1
- drivers/java-language-center
+ drivers/java
drivers/java-types
- drivers/java-driver-concurrency
- drivers/java-driver-replica-set-semantics
+ drivers/java-concurrency
+ drivers/java-replica-set-semantics
tutorial/getting-started-with-java-driver
- tutorial/java-driver-and-aggregation-framework
- tutorial/java-dbobject-to-perform-saves
+ tutorial/use-aggregation-framework-with-java-driver
+ tutorial/use-java-dbobject-to-perform-saves
Javascript
----------
@@ -64,7 +64,7 @@ Javascript
.. toctree::
:maxdepth: 1
- drivers/javascript-language-center
+ drivers/javascript
Node.js
-------
@@ -72,7 +72,7 @@ Node.js
.. toctree::
:maxdepth: 1
- drivers/node-js-language-center
+ drivers/node-js
Perl
----
@@ -80,8 +80,8 @@ Perl
.. toctree::
:maxdepth: 1
- drivers/perl-language-center
- drivers/contribute-to-perl-driver
+ drivers/perl
+ drivers/perl-internals
PHP
---
@@ -89,8 +89,8 @@ PHP
.. toctree::
:maxdepth: 1
- drivers/php-language-center
- drivers/php-libraries-frameworks-and-tools
+ drivers/php
+ drivers/php-libraries
Python
------
@@ -98,7 +98,7 @@ Python
.. toctree::
:maxdepth: 1
- drivers/python-language-center
+ drivers/python
Ruby
----
@@ -106,18 +106,18 @@ Ruby
.. toctree::
:maxdepth: 1
- drivers/ruby-language-center
- drivers/ruby-external-resources
- tutorial/mongodb-data-modeling-and-rails
- tutorial/getting-started-with-rails
- tutorial/getting-started-with-rails-3
+ drivers/ruby
+ drivers/ruby-resources
+ tutorial/model-data-for-ruby-on-rails
+ tutorial/getting-started-with-ruby-on-rails
+ tutorial/getting-started-with-ruby-on-rails-3
Community Supported Drivers
---------------------------
.. toctree::
:maxdepth: 1
-
+
/drivers/community-supported-drivers
Driver Syntax Table
View
0 source/drivers/sql-to-mongo-shell-to-cpp.txt → source/drivers/cpp-to-sql-to-mongo-shell.txt
File renamed without changes.
View
0 source/drivers/cpp-driver-library.txt → source/drivers/cpp.txt
File renamed without changes.
View
0 source/drivers/java-driver-concurrency.txt → source/drivers/java-concurrency.txt
File renamed without changes.
View
0 ...ers/java-driver-replica-set-semantics.txt → ...ce/drivers/java-replica-set-semantics.txt
File renamed without changes.
View
0 source/drivers/perl-driver-internals.txt → source/drivers/perl-internals.txt
File renamed without changes.
View
0 ...rs/php-libraries-frameworks-and-tools.txt → source/drivers/php-libraries.txt
File renamed without changes.
View
0 source/drivers/ruby-external-resources.txt → source/drivers/ruby-resources.txt
File renamed without changes.
View
48 source/index.txt
@@ -9,38 +9,24 @@ tools, and platform services that work with MongoDB. Together these
products make up the MongoDB Ecosystem. For the main MongoDB
documentation, see the :manual:`MongoDB Manual </>`.
-MongoDB.org Supported Drivers and Language Environments
--------------------------------------------------------
-
-.. toctree::
- :maxdepth: 1
-
- drivers/c-driver-library
- drivers/cpp-driver-library
- drivers/csharp-language-center
- drivers/erlang-language-center
- drivers/java-language-center
- drivers/javascript-language-center
- drivers/node-js-language-center
- drivers/perl-language-center
- drivers/php-language-center
- drivers/python-language-center
- drivers/ruby-language-center
-
-Community Supported Drivers
----------------------------
+MongoDB Drivers and Language Environments
+-----------------------------------------
.. toctree::
:maxdepth: 1
+ drivers/c
+ drivers/cpp
+ drivers/csharp
+ drivers/erlang
+ drivers/java
+ drivers/javascript
+ drivers/node-js
+ drivers/perl
+ drivers/php
+ drivers/python
+ drivers/ruby
drivers/community-supported-drivers
-
-Driver Syntax Table
--------------------
-
-.. toctree::
- :maxdepth: 1
-
drivers/syntax-table
Integration Framework
@@ -49,7 +35,7 @@ Integration Framework
.. toctree::
:maxdepth: 1
- tools/hadoop-connector
+ tools/hadoop
Administrative Tools
--------------------
@@ -59,8 +45,8 @@ Administrative Tools
tools/administration-interfaces
tools/http-interfaces
- tools/munin-configuration-examples
- tools/wireshark-support-for-mongodb-protocol
+ tools/munin
+ tools/wireshark
Cloud Platforms and Services
----------------------------
@@ -82,4 +68,4 @@ Traditional Platforms
.. toctree::
:maxdepth: 1
- platforms/windows-quick-links-and-reference-center
+ platforms/windows
View
4 source/platforms.txt
@@ -11,7 +11,7 @@ Amazon Web Services EC2
platforms/amazon-ec2
tutorial/install-mongodb-on-amazon-ec2
tutorial/deploy-mongodb-from-aws-marketplace
- tutorial/ec2-backup-and-restore
+ tutorial/backup-and-restore-mongodb-on-amazon-ec2
tutorial/automate-deployment-with-cloudformation
dotCloud
@@ -74,4 +74,4 @@ Traditional Platforms
.. toctree::
:maxdepth: 1
- platforms/windows-quick-links-and-reference-center
+ platforms/windows
View
2 source/platforms/vmware-cloud-foundry.txt
@@ -39,7 +39,7 @@ Node.js
- Blog post: `Getting started with VMware Cloud Foundry, MongoDB and Node.js <http://blog.mongodb.org/post/6587009156/cloudfoundry-mongodb-and-nodejs>`_
-- :ref:`node-js`
+- :doc:`/drivers/node-js`
Ruby
----
View
4 source/platforms/windows-azure.txt
@@ -61,8 +61,8 @@ Azure Worker Roles (Platform-as-a-Service)
Azure VM (Infrastructure-as-a-Service)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- :ref:`install-mongodb-on-windows-azure`
-- :ref:`install-mongodb-on-linux-in-azure`
+- :doc:`/tutorial/install-mongodb-on-windows-azure`
+- :doc:`/tutorial/install-mongodb-on-linux-in-azure`
Users deploying MongoDB on Azure may be interested in the following
presentations, as well:
View
2 ...dows-quick-links-and-reference-center.txt → source/platforms/windows.txt
@@ -65,7 +65,7 @@ We have successfully run MongoDB (mongod etc.) on:
Windows Azure
-------------
-For information on running Windows on Azure, see :ref:`azure-overview`.
+For information on running Windows on Azure, see :doc:`/platforms/windows-azure`.
AppHarbor
---------
View
12 source/tools.txt
@@ -5,20 +5,20 @@ MongoDB Integration and Tools
Integration Frameworks
----------------------
-.. toctree::
+.. toctree::
:maxdepth: 1
- tools/hadoop-connector
+ tools/hadoop
tutorial/getting-started-with-hadoop
- use-cases/hadoop-and-mongodb-use-cases
+ use-cases/hadoop
Administrative Tools
--------------------
.. toctree::
:maxdepth: 1
-
+
tools/administration-interfaces
tools/http-interfaces
- tools/munin-configuration-examples
- tools/wireshark-support-for-mongodb-protocol
+ tools/munin
+ tools/wireshark
View
0 source/tools/hadoop-connector.txt → source/tools/hadoop.txt
File renamed without changes.
View
0 ...ce/tools/munin-configuration-examples.txt → source/tools/munin.txt
File renamed without changes.
View
0 ...ireshark-support-for-mongodb-protocol.txt → source/tools/wireshark.txt
File renamed without changes.
View
9 source/tutorial/automate-deployment-with-cloudformation.txt
@@ -60,7 +60,7 @@ create a simple security group ``MongoSecurityGroup`` that opens up port
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "MongoDB security group",
- "SecurityGroupIngress" : [
+ "SecurityGroupIngress" : [
{
"IpProtocol" : "tcp",
"FromPort" : "22",
@@ -104,7 +104,7 @@ the EC2 instance (see :ref:`cloudformation-instance-configuration`).
"Size" : { "Ref" : "VolumeSize" },
"AvailabilityZone" : { "Fn::GetAtt" : [ "MongoInstance", "AvailabilityZone" ]}
}
- },
+ },
The next step is to attach the volume to an EC2 instance. Referencing
the instance name in ``InstanceId`` ensures that the EBS volumes will be
@@ -184,7 +184,7 @@ a script to be run after boot (found in the ``UserData`` section):
"Properties" : {
"InstanceType" : { "Ref" : "InstanceType" },
- "ImageId" : { "Fn::FindInMap" : [ "RegionImageZone", { "Ref" : "AWS::Region" },
+ "ImageId" : { "Fn::FindInMap" : [ "RegionImageZone", { "Ref" : "AWS::Region" },
{ "Fn::FindInMap" : [ "InstanceTypeArch", { "Ref" : "InstanceType" }, "Arch" ] } ] },
"SecurityGroups" : [ { "Ref" : "MongoSecurityGroup" } ],
"KeyName" : { "Ref" : "KeyName" },
@@ -512,4 +512,5 @@ There you will be prompted to upload your template and input the necessary
parameters.
For more information on deploying MongoDB on AWS, refer to the
-:ref:`amazon-ec2` page and the :ref:`amazon-ec2-quickstart`.
+:doc:`/platforms/amazon-ec2` page and the
+:doc:`/tutorial/install-mongodb-on-amazon-ec2`.
View
0 source/tutorial/ec2-backup-and-restore.txt → ...kup-and-restore-mongodb-on-amazon-ec2.txt
File renamed without changes.
View
0 ...tutorial/getting-started-with-rails-3.txt → .../getting-started-with-ruby-on-rails-3.txt
File renamed without changes.
View
4 ...e/tutorial/getting-started-with-rails.txt → ...al/getting-started-with-ruby-on-rails.txt
@@ -1,4 +1,4 @@
-.. http://www.mongodb.org/display/DOCS/Rails+-+Getting+Started
+.. http://www.mongodb.org/display/DOCS/Rails+-+Getting+Started
.. _getting-started-with-rails:
@@ -8,7 +8,7 @@ Getting Started with Rails
.. default-domain:: mongodb
-Using Rails 3? See :ref:`Rails 3 - Getting Started <rails3-getting-started>`.
+Using Rails 3? See :doc:`Rails 3 - Getting Started </tutorial/getting-started-with-ruby-on-rails-3>`.
This tutorial describes how to set up a simple Rails application with
MongoDB, using MongoMapper as an object mapper. We assume you're using
View
0 ...orial/mongodb-data-modeling-and-rails.txt → ...tutorial/model-data-for-ruby-on-rails.txt
File renamed without changes.
View
0 ...java-driver-and-aggregation-framework.txt → ...ggregation-framework-with-java-driver.txt
File renamed without changes.
View
60 source/tutorial/csharp-driver-tutorial.txt → source/tutorial/use-csharp-driver.txt
@@ -22,8 +22,8 @@ C# Driver consists of two libraries: the BSON Library and the C#
Driver. The BSON Library can be used independently of the C# Driver if
desired. The C# Driver requires the BSON Library.
-You may also be interested in the :ref:`C# Driver Serialization
-Tutorial <csharp-driver-serialization-tutorial>`. It is a separate
+You may also be interested in the :doc:`C# Driver Serialization
+Tutorial </tutorial/serialize-documents-with-the-csharp-driver>`. It is a separate
tutorial because it covers quite a lot of material.
.. _csharp-driver-tutorial-downloading:
@@ -93,11 +93,11 @@ unit tests (unless you use a different test runner).
Running Unit Tests
------------------
-There are three projects containing unit tests:
+There are three projects containing unit tests:
-1. ``BsonUnitTests``
-#. ``DriverUnitTests``
-#. ``DriverUnitTestsVB``
+1. ``BsonUnitTests``
+#. ``DriverUnitTests``
+#. ``DriverUnitTestsVB``
The ``BsonUnitTests`` do not connect to a MongoDB server. The
``DriverUnitTests`` and ``DriverUnitTestsVB`` connect to an instance of
@@ -109,7 +109,7 @@ follows (using ``BsonUnitTests`` as an example):
- On the **Debug** tab:
- - Set ``Start Action`` to: ``Start External Program``
+ - Set ``Start Action`` to: ``Start External Program``
- Set ``external program`` to: :file:`C:\Program Files (x86)\NUnit
2.5.9\bin\net-2.0\nunit.exe`
@@ -129,7 +129,7 @@ on your machine.
To run the ``DriverUnitTests`` and ``DriverUnitTestsVB`` perform the
same steps (modified as necessary).
-Installing
+Installing
----------
If you want to install the C# Driver on your machine you can use the
@@ -154,7 +154,7 @@ place them wherever you want them to be.
References and Namespaces
-------------------------
-To use the C# Driver you must add references to the following DLLs:
+To use the C# Driver you must add references to the following DLLs:
#. :file:`MongoDB.Bson.dll`
@@ -407,7 +407,7 @@ construction).
``ObjectId``. ``BsonObjectId`` is a subclass of ``BsonValue`` whose
Value property is of type ``ObjectId``.
-Here are some common ways of creating ``ObjectId`` values:
+Here are some common ways of creating ``ObjectId`` values:
.. code-block:: csharp
@@ -454,7 +454,7 @@ There are three ways to create and populate a ``BsonDocument``:
``BsonDocument`` Constructor
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-``BsonDocument`` has the following constructors:
+``BsonDocument`` has the following constructors:
- ``BsonDocument()``
- ``BsonDocument(string name, BsonValue value)``
@@ -577,7 +577,7 @@ This creates a top level document with two elements (``name`` and
``Add`` Methods
~~~~~~~~~~~~~~~
-``BsonDocument`` has the following overloaded ``Add`` methods:
+``BsonDocument`` has the following overloaded ``Add`` methods:
- ``Add(BsonElement element)``
- ``Add(Dictionary<string, object> dictionary)``
@@ -597,7 +597,7 @@ element isn't added. This makes it really easy to handle optional
elements without having to write any if statements or conditional
expressions.
-For example:
+For example:
.. code-block:: csharp
@@ -607,7 +607,7 @@ For example:
{ "dob", dob, dobAvailable } // not added if dobAvailable is false
};
-is more compact and readable than:
+is more compact and readable than:
.. code-block:: csharp
@@ -658,10 +658,10 @@ are some more:
.. code-block:: csharp
- BsonDocument book;
- string author = book["author"].AsString;
- DateTime publicationDate = book["publicationDate"].AsDateTime;
- int pages = book["pages", -1].AsInt32; // default value is -1
+ BsonDocument book;
+ string author = book["author"].AsString;
+ DateTime publicationDate = book["publicationDate"].AsDateTime;
+ int pages = book["pages", -1].AsInt32; // default value is -1
BsonArray
---------
@@ -674,7 +674,7 @@ the ``BsonDocument`` class because they are used very differently.
Constructors
~~~~~~~~~~~~
-``BsonArray`` has the following constructors:
+``BsonArray`` has the following constructors:
- ``BsonArray()``
- ``BsonArray(IEnumerable<bool> values)``
@@ -856,7 +856,7 @@ only queries against it). You could use:
mongodb://server2/?connect=direct;readpreference=nearest
-The full documentation for connection strings can be found at
+The full documentation for connection strings can be found at
`Connection String
<http://docs.mongodb.org/manual/reference/connection-string/>`_
and read preferences at
@@ -871,7 +871,7 @@ the connection string be adding an ``ssl=true`` option to the options.
.. code-block:: none
mongodb://server2/?ssl=true
-
+
By default, the server certificate will get validated against the local
trusted certificate store. This sometimes causes issues in test
environments where test servers don't have signed certs. To alleviate
@@ -942,7 +942,7 @@ You can navigate from an instance of ``MongoServer`` to an instance of
- ``MongoDatabase GetDatabase(string databaseName, MongoCredentials credentials, WriteConcern writeConcern)``
- ``MongoDatabase GetDatabase(string databaseName, WriteConcern writeConcern)``
-Sample code:
+Sample code:
.. code-block:: csharp
@@ -1025,7 +1025,7 @@ will be only one instance of this class per database, unless you are
using different settings to access the same database, in which case
there will be one instance for each set of settings.
-Instances of this class are thread safe.
+Instances of this class are thread safe.
``GetCollection`` Method
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1170,7 +1170,7 @@ the query can be of any type that can be successfully serialized to a
BSON document, but it is up to you to make sure that the serialized
document represents a valid query object.
-One way to query is to create a ``QueryDocument`` object yourself:
+One way to query is to create a ``QueryDocument`` object yourself:
.. code-block:: csharp
@@ -1180,7 +1180,7 @@ One way to query is to create a ``QueryDocument`` object yourself:
// do something with book
}
-Another way to query is to use the Query Builder (recommended):
+Another way to query is to use the Query Builder (recommended):
.. code-block:: csharp
@@ -1260,7 +1260,7 @@ sample shown for the ``Save`` method could also have been written as:
};
BsonDocument updatedBook = books.Update(query, update);
-or using ``Query`` and ``Update`` builders:
+or using ``Query`` and ``Update`` builders:
.. code-block:: csharp
@@ -1286,7 +1286,7 @@ return.
Using the example documented here, `findAndModify Command
<http://docs.mongodb.org/manual/reference/command/findAndModify/>`_,
-the call to ``FindAndModify`` would be written in C# as:
+the call to ``FindAndModify`` would be written in C# as:
.. code-block:: csharp
@@ -1425,7 +1425,7 @@ results to the next 10, we could write:
// do something with task
}
-or using the fluent interface:
+or using the fluent interface:
.. code-block:: csharp
@@ -1445,7 +1445,7 @@ before you start enumerating it.
Modifiable Properties of a Cursor
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The following properties of a cursor are modifiable:
+The following properties of a cursor are modifiable:
- ``BatchSize`` (``SetBatchSize``)
- ``Fields`` (``SetFields``)
@@ -1472,7 +1472,7 @@ very frequently and are not exposed as properties:
Other Methods
~~~~~~~~~~~~~
-
+
``MongoCursor`` has a few methods used for some special purpose operations:
- ``Clone``
View
0 ...torial/java-dbobject-to-perform-saves.txt → ...al/use-java-dbobject-to-perform-saves.txt
File renamed without changes.
View
38 .../tutorial/csharp-driver-linq-tutorial.txt → ...l/use-linq-queries-with-csharp-driver.txt
@@ -18,7 +18,7 @@ This tutorial covers the support for LINQ queries added in the 1.4
release of the C# driver.
You should already have read at least the
-:ref:`csharp-driver-quickstart` introduction to the C# driver.
+:doc:`/tutorial/use-csharp-driver` introduction to the C# driver.
Quickstart
----------
@@ -77,7 +77,7 @@ are supported. If you write a LINQ query that can't be translated you
will get a runtime exception and the error message will indicate which
part of the query wasn't supported.
-.. note::
+.. note::
The 1.4 version of the C# driver requires that all *where* clauses
that compare a field or property against a value have the constant
on the right hand side. This restriction will be lifted in the next
@@ -89,12 +89,12 @@ Supported LINQ query operators
This section documents the supported LINQ query operators.
- ``Any``
-
+
Without a predicate ``Any`` just tests whether the collection has any
documents.
.. code-block:: csharp
-
+
var result =
(from c in collection.AsQueryable<C>()
select c)
@@ -110,7 +110,7 @@ This section documents the supported LINQ query operators.
matching documents.
.. code-block:: csharp
-
+
var result =
(from c in collection.AsQueryable<C>()
select c)
@@ -125,7 +125,7 @@ This section documents the supported LINQ query operators.
previous query.
.. code-block:: csharp
-
+
var result =
(from c in collection.AsQueryable<C>()
where c.X == 1
@@ -279,7 +279,7 @@ This section documents the supported LINQ query operators.
throwing an exception.
- ``First``
-
+
``First`` returns the first document from a result set. Often you
will combine this with a sort order.
@@ -337,7 +337,7 @@ This section documents the supported LINQ query operators.
an exception.
- ``FirstOrDefault``
-
+
``FirstOrDefault`` is just like ``First`` except that if there are no
matching documents it returns ``null`` instead of throwing an
exception.
@@ -435,7 +435,7 @@ This section documents the supported LINQ query operators.
field or property whose maximum value you want.
.. code-block:: csharp
-
+
var result =
(from c in collection.AsQueryable<C>()
select c.X)
@@ -731,7 +731,7 @@ This section documents the supported LINQ query operators.
set.
.. code-block:: csharp
-
+
var query =
from c in collection.AsQueryable<C>()
where c.X > 0
@@ -813,7 +813,7 @@ operator.
.. code-block:: csharp
- var query =
+ var query =
from c in collection.AsQueryable<C>()
where (c.X % 2 == 0) && (c.X % 3 == 0)
select c;
@@ -932,7 +932,7 @@ operator.
.. code-block:: csharp
- var query =
+ var query =
from c in collection.AsQueryable<C>()
where c.S.Contains("abc")
select c;
@@ -1013,7 +1013,7 @@ operator.
.. code-block:: javascript
{ L : { $size: 3 } }
-
+
- ``Count`` *property* (array length)
This property is used to test whether a list (or list-like) field or
@@ -1043,7 +1043,7 @@ operator.
.. code-block:: csharp
- var query =
+ var query =
from c in collection.AsQueryable<C>()
where c.S.EndsWith("abc")
select c;
@@ -1210,7 +1210,7 @@ operator.
.. code-block:: csharp
- var query =
+ var query =
from c in collection.AsQueryable<C>()
where c.X % 2 == 1
select c;
@@ -1226,7 +1226,7 @@ operator.
{ X : { $mod : [2, 1] } }
- ``!`` (**Not** operator)
-
+
The ``!`` operator is used to reverse the sense of a test.
.. code-block:: csharp
@@ -1247,7 +1247,7 @@ operator.
{ X : { $not : { $gt : 1 } } }
.. note::
-
+
``!(c.X > 1)`` is not equivalent to ``(c.X <= 1)`` in cases where
``c.X`` is missing or does not have a numeric type.
@@ -1292,7 +1292,7 @@ operator.
This is translated to the following MongoDB query:
.. code-block:: javascript
-
+
{ $or : [{ X : { $gt : 0 } }, { Y : { $gt : 0 } }] }
- ``StartsWith`` (string method)
@@ -1302,7 +1302,7 @@ operator.
.. code-block:: csharp
- var query =
+ var query =
from c in collection.AsQueryable<C>()
where c.S.StartsWith("abc")
select c;
View
0 ...se-cases/hadoop-and-mongodb-use-cases.txt → source/use-cases/hadoop.txt
File renamed without changes.

0 comments on commit ba05e27

Please sign in to comment.
Something went wrong with that request. Please try again.