ebook img

Pro MongoDB Development PDF

754 Pages·2016·33.21 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Pro MongoDB Development

Pro MongoDB™ Development Deepak Vohra Pro MongoDB™ Development Copyright © 2015 by Deepak Vohra This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law. ISBN-13 (pbk): 978-1-48421599-9 ISBN-13 (electronic): 978-1-4842-1598-2 Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director: Welmoed Spahr Lead Editor: Steve Anglin Technical Reviewers: Manuel Jordan, John Yeary, and Massimo Nardone Editorial Board: Steve Anglin, Louise Corrigan, Jonathan Gennick, Robert Hutchinson, Michelle Lowman, James Markham, Susan McDermott, Matthew Moodie, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Gwenan Spearing, Steve Weiss Coordinating Editor: Mark Powers Copy Editor: Karen Jameson Compositor: SPi Global Indexer: SPi Global Artist: SPi Global Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail [email protected], or visit www.apress.com. Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales. Any source code or other supplementary materials referenced by the author in this text is available to readers at www.apress.com/9781484215999. For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/. Readers can also access source code at SpringerLink in the Supplementary Material section for each chapter. Contents at a Glance About the Author About the Technical Reviewers Introduction Chapter 1: Using a Java Client with MongoDB Chapter 2: Using the Mongo Shell Chapter 3: Using MongoDB with PHP Chapter 4: Using MongoDB with Ruby Chapter 5: Using MongoDB with Node.js Chapter 6: Migrating an Apache Cassandra Table to MongoDB Chapter 7: Migrating Couchbase to MongoDB Chapter 8: Migrating Oracle Database Chapter 9: Using Kundera with MongoDB Chapter 10: Using Spring Data with MongoDB Chapter 11: Creating an Apache Hive Table with MongoDB Chapter 12: Integrating MongoDB with Oracle Database in Oracle Data Integrator Index Contents About the Author About the Technical Reviewers Introduction Chapter 1: Using a Java Client with MongoDB Setting Up the Environment Creating a Maven Project Creating a BSON Document Using a Model to Create a BSON Document Getting Data from MongoDB Updating Data in MongoDB Deleting Data in MongoDB Summary Chapter 2: Using the Mongo Shell Getting Started Setting Up the Environment Starting the Mongo Shell Running a Command or Method in Mongo Shell Using Databases Getting Databases Information Creating a Database Instance Dropping a Database Using Collections Creating a Collection Dropping a Collection Using Documents Adding a Document Adding a Batch of Documents Saving a Document Updating a Document Updating Multiple Documents Finding One Document Finding All Documents Finding Selected Fields Using the Cursor Finding and Modifying a Document Removing a Document Summary Chapter 3: Using MongoDB with PHP Getting Started Overview of the PHP MongoDB Database Driver Setting Up the Environment Installing PHP Installing PHP Driver for MongoDB Creating a Connection Getting Database Info Using Collections Getting a Collection Dropping a Collection Using Documents Adding a Document Adding Multiple Documents Adding a Batch of Documents Finding a Single Document Finding All Documents Finding a Subset of Fields and Documents Updating a Document Updating Multiple Documents Saving a Document Removing a Document Summary Chapter 4: Using MongoDB with Ruby Getting Started Overview of the Ruby Driver for MongoDB Setting Up the Environment Installing Ruby Installing DevKit Installing Ruby Driver for MongoDB Using a Collection Creating a Connection with MongoDB Connecting to a Database Creating a Collection Using Documents Adding a Document Adding Multiple Documents Finding a Single Document Finding Multiple Documents Updating Documents Deleting Documents Performing Bulk Operations Summary Chapter 5: Using MongoDB with Node.js Getting Started Overview of Node.js Driver for MongoDB Setting Up the Environment Installing MongoDB Server Installing Node.js Installing the Node.js Driver for MongoDB Using a Connection Creating a MongoDB Connection Using the Database Using a Collection Using Documents Adding a Single Document Adding Multiple Documents Finding a Single Document Finding All Documents Finding a Subset of Documents Using the Cursor Finding and Modifying a Single Document Finding and Removing a Single Document Replacing a Single Document Updating a Single Document Updating Multiple Documents Removing a Single Document Removing Multiple Documents Performing Bulk Write Operations Summary Chapter 6: Migrating an Apache Cassandra Table to MongoDB Setting Up the Environment Creating a Maven Project in Eclipse Creating a Document in Apache Cassandra Migrating the Cassandra Table to MongoDB Summary Chapter 7: Migrating Couchbase to MongoDB Setting Up the Environment Creating a Maven Project Creating Java Classes Configuring the Maven Project Adding Documents to Couchbase Creating a Couchbase View Migrating Couchbase Documents to MongoDB Summary Chapter 8: Migrating Oracle Database Overview of the mongoimport Tool Setting Up the Environment Creating an Oracle Database Table Exporting an Oracle Database Table to a CSV File Importing Data from a CSV File to MongoDB Displaying the JSON Data in MongoDB Summary Chapter 9: Using Kundera with MongoDB Setting Up the Environment Creating a MongoDB Collection Creating a Maven Project in Eclipse Creating a JPA Entity Class Configuring JPA in the persistence.xml Configuration File Creating a JPA Client Class Running 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 Entry The Kundera-Mongo JPA Client Class Installing the Maven Project Running the Kundera-Mongo JPA Client Class

Description:
Apress, 2015. — 504 p. — ISBN-10: 1484215990, ISBN-13: 978-1-484215-99-9.Код примеров к книге выложен здесь.Pro MongoDB Development is a critical reference for anyone using MongoDB, a NoSQL database based on the BSON (binary JSON) document model. The book explores ma
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.