Class QueryToMongodb


  • public class QueryToMongodb
    extends java.lang.Object
    Query to MongoDB
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.bson.conversions.Bson getCommand​(Query query)  
      protected static java.lang.Iterable<org.bson.conversions.Bson> getCommands​(java.util.List<Query> queries)  
      static org.bson.conversions.Bson getFullCommand​(org.bson.conversions.Bson command, org.bson.conversions.Bson roots)
      Merge a request and a root filter
      static org.bson.conversions.Bson getRoots​(java.lang.String field, java.util.Collection<java.lang.String> roots)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRoots

        public static org.bson.conversions.Bson getRoots​(java.lang.String field,
                                                         java.util.Collection<java.lang.String> roots)
        Parameters:
        field - String
        roots - Set of String
        Returns:
        the filter associated with the roots
      • getFullCommand

        public static org.bson.conversions.Bson getFullCommand​(org.bson.conversions.Bson command,
                                                               org.bson.conversions.Bson roots)
        Merge a request and a root filter
        Parameters:
        command - Bson
        roots - Bson
        Returns:
        the complete request
      • getCommands

        protected static java.lang.Iterable<org.bson.conversions.Bson> getCommands​(java.util.List<Query> queries)