• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Using Jaspersoft with MongoDB
 

Using Jaspersoft with MongoDB

on

  • 2,944 views

Slide deck for the April 16, 2013 Jaspersoft Tech Talk. ...

Slide deck for the April 16, 2013 Jaspersoft Tech Talk.

http://www.jaspersoft.com/external/jaspersoft-tech-talks

* MongoDB - http://www.mongodb.org/
* MongoDB Documentation - http://docs.mongodb.org/manual/
* The Jaspersoft MongoDB Query Language - http://community.jaspersoft.com/wiki/jaspersoft-mongodb-query-language
* Right Outer Join Blog - by Matt Dahlman http://mdahlman.wordpress.com/2011/09/02/simple-reporting-on-mongodb/
* JasperReports Server Documentation - http://community.jaspersoft.com/documentation/

Statistics

Views

Total Views
2,944
Views on SlideShare
2,944
Embed Views
0

Actions

Likes
1
Downloads
25
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Thanks - the query slide was VERY helpful!!
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Using Jaspersoft with MongoDB Using Jaspersoft with MongoDB Presentation Transcript

    • Using Jaspersoft with MongoDBMariano LunaSenior Sales Engineer, JaspersoftApril 16, 2013
    • Session Overview What is MongoDB? Connecting to MongoDB from JasperServer The MongoDB Query Language Using MongoDB in iReport Using Adhoc with MongoDB©2010 Jaspersoft Corporation. Proprietary and Confidential 2
    • What is MongoDB MongoDB (from "humongous") is an open source document database written in C++. MongoDB in a nutshell  Document-Oriented Storage (JSON Documents)  JSON-style documents with dynamic schemas offer simplicity and power.  Full Index Support. Index on any attribute, just like youre used to.  Rich, document-based query language.  Map/Reduce  Flexible aggregation and data processing.©2010 Jaspersoft Corporation. Proprietary and Confidential 3
    • The Jaspersoft MongoDB QueryLanguage The Jaspersoft MongoDB Query Language is a JSON- style declarative language for specifying what data to retrieve from MongoDB. The connector converts this query into the appropriate API calls and uses the MongoDB Java connector to query the MongoDB instance. There are two types of queries supported:  API driven queries: These queries rely on the mongo-java-driver support provided to query MongoDB.  Command driven queries: This queries allow the usage of MongoDB Aggregation Framework operators©2010 Jaspersoft Corporation. Proprietary and Confidential 4
    • Connecting Jaspersoft to MongoDB Creating a JasperServer Datasource Setting connection URL mongodb://<SERVER>:<PORT>/<COLLECTION> and (optional) authentication©2010 Jaspersoft Corporation. Proprietary and Confidential 5
    • API Driven QueriesQuerying Mongo form Jasper{ # The following parameter is mandatory. collectionName : myCollection Details, # The following parameters are optional findQuery : { Details }, findFields : { Details }, sort : {Details}, mapReduce : {Details}, limit : int Details, rowsToProcess : int Details}©2010 Jaspersoft Corporation. Proprietary and Confidential 6
    • Command Driven QueriesQuerying mongo form Jasper{ runCommand : { Command body }, # The following parameter is optional rowsToProcess : int Details}Using runCommand to access the MongoDB aggregation framework{ runCommand : { aggregate : COLLECTION_NAME, pipeline : [ List of aggregation operations ] }}©2010 Jaspersoft Corporation. Proprietary and Confidential 7
    • Example QueriesMinimal{ collectionName : accounts’ }Filtered and parameterized{ collectionName : accounts, findQuery : { status_date : { $gte : $P{StartDate} }, name : { $regex : ^N, $options : } }}©2010 Jaspersoft Corporation. Proprietary and Confidential 8
    • Example QueriesSpecify the fields returned and sort the results{ collectionName : accounts, findFields : { name:1, phone_office:1, billing_address_city:1, billing_address_street:1, billing_address_country:1 }, sort : { billing_address_country:-1, billing_address_city:1 }}©2010 Jaspersoft Corporation. Proprietary and Confidential 9
    • Example QueriesUsing the Aggregation{ runCommand: { aggregate : zips, pipeline : [ { $group : { _id : $state, population: { $sum : $pop } } }, { $sort : { population : -1 } } ]}©2010 Jaspersoft Corporation. Proprietary and Confidential 10
    • Demo
    • Additional Resources MongoDB http://www.mongodb.org/ MongoDB Documentation http://docs.mongodb.org/manual/ The Jaspersoft MongoDB Query Languagehttp://community.jaspersoft.com/wiki/jaspersoft- mongodb-query-language Right Outer Join Blog - by Matt Dahlman http://mdahlman.wordpress.com/2011/09/02/simple-reporting-on- mongodb/ JasperReports Server Documentation http://community.jaspersoft.com/documentation/©2010 Jaspersoft Corporation. Proprietary and Confidential 12
    • Thank You