monsterDB – API Examples

monsterDB API Examples

Some Examples on how to use the Java API

 

documentTest.java

Tests some of the basic functionality of the Document (json) object and its expression analyser. 

connectTest.java

Tests the remote connection to a server and then creates a collection, inserts, queries etc.

AggregateTestSum.java

Tests some of the basic functionality of the pipeline engine

CollectionTest.java

Simple collection Test and index scan

CollectionTestDelete.java

Simple collection Test to delete some documents from a collection

CollectionTestIndexes.java

Multiple tests on the optimiser to determine if the indexes are used.

CollectionTestPersistant.java

Persistence tests across runs, including tests for fullScans on and and or queries.

CollectionTestUpdates.java

Tests the ability to update a document including projecting a value into a list

FuzzyTest

Tests the fuzzy matching for search and match, also shows how to use it in a pipeline, requires additional files to run. They are under Mars resources.