public class MongoDBQuery<K,T extends PersistentBase> extends QueryBase<K,T>
Query
interface.Constructor and Description |
---|
MongoDBQuery() |
MongoDBQuery(DataStore<K,T> dataStore) |
Modifier and Type | Method and Description |
---|---|
static com.mongodb.DBObject |
toDBQuery(Query<?,?> query)
Compute the query itself.
|
static com.mongodb.DBObject |
toProjection(String[] fields,
MongoMapping mapping)
Compute the projection of the query, that is the fields that will be
retrieved from the database.
|
equals, execute, getConf, getDataStore, getEndKey, getEndTime, getFields, getFilter, getKey, getLimit, getStartKey, getStartTime, getTimestamp, hashCode, isLocalFilterEnabled, readFields, setConf, setDataStore, setEndKey, setEndTime, setFields, setFilter, setKey, setKeyRange, setLimit, setLocalFilterEnabled, setStartKey, setStartTime, setTimeRange, setTimestamp, toString, write
public static com.mongodb.DBObject toDBQuery(Query<?,?> query)
DBObject
corresponding to the querypublic static com.mongodb.DBObject toProjection(String[] fields, MongoMapping mapping)
DBObject
corresponding to the list of field to be
retrieved with the associated booleanCopyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.