CFMongoDB

cfmongodb.core
Class SearchResult

WEB-INF.cftags.component
        extended by cfmongodb.core.SearchResult

public class SearchResult
extends WEB-INF.cftags.component

Constructor Summary
init([any mongoCursor], [any sort], [any mongoUtil])
 
Method Summary
 any asArray()
          Converts all cursor elements into a ColdFusion structure and returns them as an array of structs
 any asCursor()
          The fastest return type
 any explain()
          Mongo's native explain command
 any getQuery()
          The criteria used for the query
 any getSort()
          The sort used for the query
 any size()
          The number of elements in the result, after limit and skip are applied
 any totalCount()
          The total number of elements for the query, before limit and skip are applied
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init([any mongoCursor], [any sort], [any mongoUtil])

Parameters:
mongoCursor
sort
mongoUtil
Method Detail

asArray

public any asArray()
Converts all cursor elements into a ColdFusion structure and returns them as an array of structs.


asCursor

public any asCursor()
The fastest return type... returns the case-sensitive cursor which you'd iterate over with while(cursor.hasNext()) {cursor.next();} Note: you can use the cursor object to get full access to the full API at http://api.mongodb.org/java


explain

public any explain()
Mongo's native explain command. Useful for debugging and performance analysis


getQuery

public any getQuery()
The criteria used for the query. Use getQuery().toString() to get a copy/paste string for the Mongo shell


getSort

public any getSort()
The sort used for the query. use getSort().toString() to get a copy/paste string for the Mongo shell


size

public any size()
The number of elements in the result, after limit and skip are applied


totalCount

public any totalCount()
The total number of elements for the query, before limit and skip are applied


CFMongoDB