Pro MongoDB Development (eBook)
XVIII, 481 Seiten
Apress (Verlag)
978-1-4842-1598-2 (ISBN)
- How to use a Java client and MongoDB shell
- How to use MongoDB with PHP, Ruby, and Node.js as well
Pro MongoDB Development is about MongoDB, a NoSQL database based on the BSON (binary JSON) document model. The book discusses all aspects of using MongoDB in web applications: Java, PHP, Ruby, JavaScript are the most commonly used programming/scripting languages and the book discusses accessing MongoDB database with these languages. The book also discusses using Java EE frameworks Kundera and Spring Data with MongoDB. As NoSQL databases are commonly used with the Hadoop ecosystem the book also discusses using MongoDB with Apache Hive. Migration from other NoSQL databases (Apache Cassandra and Couchbase) and from relational databases (Oracle Database) is also discussed. What You'll Learn:How to use a Java client and MongoDB shellHow to use MongoDB with PHP, Ruby, and Node.js as wellHow to migrate Apache Cassandra tables to MongoDB documents; Couchbase to MongoDB; and transferring data between Oracle and MongoDBHow to use Kundera, Spring Data, and Spring XD with MongoDBHow to load MongoDB data into Oracle Database and integrating MongoDB with Oracle Database in Oracle Data IntegratorAudience:The target audience of the book is NoSQL database developers. Target audience includes Java, PHP and Ruby developers. The book is suitable for an intermediate level course in NoSQL database.
Deepak Vohra is an Oracle Certified Associate and a Sun Certified Java Programmer. Deepak is a Fellow British Computer Scoiety. Deepak has published in Oracle Magazine, OTN, IBM developerWorks, ONJava, DevSource, WebLogic Developer’s Journal, XML Journal, Java Developer’s Journal, FTPOnline, and devx.
Section I: Java Client and Shell1. Using a Java Client with MongoDBSetting the EnvironmentCreating a Java ProjectCreating a BSON Document in MongoDBUsing a Model to Create a BSON Document in MongoDB Getting Data from MongoDBUpdating Data in MongoDBDeleting Data in MongoDB2. Using the MongoDB ShellSetting the EnvironmentStarting the mongo ShellConnecting to MongoDB from the mongo ShellRunning a Command or Method in mongo ShellGetting Databases InfoCreating a Database InstanceCreating a CollectionAdding a DocumentAdding a Batch of DocumentsSaving a DocumentUpdating a DocumentUpdating Multiple DocumentsFinding One DocumentFinding All DocumentsFinding Selected Fields Using the CursorFinding and Modifying a DocumentRemoving a DocumentDropping a CollectionDropping a DatabaseSection II-Scripting Languages3. Using MongoDB with PHPOverview of the MongoDB database DriverSetting the EnvironmentCreating a Connection Getting Collections InfoGetting a CollectionAdding a DocumentAdding Multiple DocumentsAdding a Batch of DocumentsFinding a Single DocumentFinding All DocumentsFinding a Subset of DocumentsUpdating a DocumentUpdating Multiple DocumentsSaving a DocumentRemoving a DocumentDropping a Collection4. Using MongoDB with RubyOverview of the Ruby Driver for MongoDBSetting the EnvironmentCreating a Connection with MongoDBGetting Database InfoCreating a CollectionAdding a Single DocumentAdding Multiple DocumentsFinding a Single DocumentFinding DocumentsUsing Queries for Finding DocumentsFinding and Modifying a DocumentUpdating a DocumentUpdating Multiple DocumentsSaving a DocumentDeleting a Document5. Using MongoDB with Node.jsOverview of Node Driver for MongoDBSetting the EnvironmentCreating a MongoDB ConnectionCreating a Database Creating a CollectionAdding DocumentsFinding a Single DocumentFinding All DocumentsFinding a Subset of DocumentsUsing the CursorFinding and Modifying a DocumentFinding and Removing a DocumentUpdating a Single DocumentUpdating Multiple DocumentSaving a DocumentRemoving a DocumentSection III-Migration6. Migrating a Apache Cassandra Table to a MongoDB DocumentSetting the EnvironmentCreating a Java ProjectCreating a Document in Apache CassandraMigrating the Cassandra Document to MongoDB 7. Migrating Couchbase to MongoDBSetting the EnvironmentCreating a Java ProjectAdding a Document to CouchbaseMigrating Couchbase Document to MongoDB8. Transferring Data Between Oracle Database and MongoDB Setting the Environment Creating a Oracle Database Table Exporting Oracle Database to a CSV File Importing the CSV File in MongoDB Exporting MongoDB Document as CSV File Importing a CSV File to Oracle DatabaseSection IV-Java EE9. Using Kundera with MongoDBSetting the EnvironmentCreating a MongoDB CollectionCreating a Maven Project in EclipseInstalling the kundera-mongo ModuleCreating a JPA Entity ClassConfiguring JPA in persistence.xml Configuration fileCreating a JPA Client ClassRunning JPA CRUD Operations Creating a Catalog Finding a Catalog Entry using the Entity Class Finding a Catalog Entry using a JPA Query Updating a Catalog Entry Deleting a Catalog EntryThe Kundera Mongo JPA Client ClassRunning the Kundera Mongo JPA Client Class 10. Using Spring Data with MongoDB Setting the Environment Creating a Maven Project Installing Spring Data MongoDB Configuring JavaConfig Creating a Model Using Spring Data with Couchbase with Template Creating a MongoDB Collection Creating Document Instances Adding a Document Adding a Document Batch Finding a Document by Id Finding One Document Finding All Documents Finding Documents using a Query Updating the First Document Update Multiple Documents Removing Documents Using Spring Data Repositories with MongoDB Document Count Finding Entities from Repository Finding All Documents Finding One Document Saving Entities Saving a Single Document Saving a Batch of Documents Deleting Entities Deleting a Document By Id Deleting All Documents Section V-Hadoop11. Loading MongoDB Data into Oracle Database Overview of Hive Storage Handler for MongoDB Setting the Environment Creating a MongoDB Data Store Creating an External Table in HiveLoading the Hive Table with Oracle Loader for Hadoop12. Integrating MongoDB with Oracle Database in Oracle Data Integrator Setting the Environment Creating the Physical Architecture Creating the Logical Architecture Creating the Data Models Creating the Integration Project Creating the Integration Interface Running the Interface Selecting Integrated Data in Oracle Database Table
Erscheint lt. Verlag | 30.12.2015 |
---|---|
Zusatzinfo | XVIII, 481 p. 383 illus. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Datenbanken |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | Big Data • bson • Database • Development • Hadoop • Java • JSON • Kundera • MongoDB • Node.js • NoSQL • PHP • programming • Ruby |
ISBN-10 | 1-4842-1598-2 / 1484215982 |
ISBN-13 | 978-1-4842-1598-2 / 9781484215982 |
Haben Sie eine Frage zum Produkt? |
Größe: 36,9 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich