Package de.caluga.morphium.query
Klasse Query<T>
java.lang.Object
de.caluga.morphium.query.Query<T>
- Alle implementierten Schnittstellen:
Cloneable
User: Stpehan Bösebeck
Date: 26.03.12
Time: 22:14
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaddProjection(Enum f, String projectOperator) addProjection(String f, String projectOperator) asIterable(int windowSize) asList()voidasList(AsyncOperationCallback<T> callback) clone()complexQuery(Map<String, Object> query) Veraltet.complexQuery(Map<String, Object> query, String sort, int skip, int limit) use rawQuery() insteadVeraltet.longcomplexQueryCount(Map<String, Object> query) complexQueryOne(Map<String, Object> query) longcountAll()voiddec(Enum field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(Enum field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(Enum field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(Enum field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(String field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(String field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(String field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) dec(String field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) delete()List<?> explain()explain(ExplainCommand.ExplainVerbosity verbosity) explainCount(ExplainCommand.ExplainVerbosity verbosity) explainDistinct(String field, ExplainCommand.ExplainVerbosity verbosity) findOneAndUpdate(Map<String, Object> update) findOneAndUpdateEnums(Map<Enum, Object> update) get()voidget(AsyncOperationCallback<T> callback) intVeraltet.voidgetById(Object id, AsyncOperationCallback<T> callback) Veraltet.getDB()getHint()intgetLimit()static org.slf4j.LoggergetLog()intintintgetSkip()getSort()getSrv()String[]getTags()getType()getWhere()<R> List<R> idList()voididList(AsyncOperationCallback<T> callback) inc(Enum field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(Enum field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(Enum field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(Enum field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(String field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(String field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(String field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) inc(String field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) booleanbooleanlimit(int i) matchesJsonSchema(String schemaDef) matchesJsonSchema(Map<String, Object> schemaDef) voidoverrideDB(String overrideDB) pull(Enum field, Expr value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) pull(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) pull(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) pullAll(Enum field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) pullAll(String field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) push(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) push(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) pushAll(Enum field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) pushAll(String field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) q()remove()set(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) set(Enum field, Object value, AsyncOperationCallback<T> cb) set(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) set(String field, Object value, AsyncOperationCallback<T> cb) setAdditionalDataPresent(boolean additionalDataPresent) setAndExpr(List<FilterExpression> andExpr) setArHelper(AnnotationAndReflectionHelper arHelper) setAutoValuesEnabled(boolean autoValuesEnabled) setBatchSize(int batchSize) setCollation(Collation collation) setExecutor(ThreadPoolExecutor executor) setFieldList(Map<String, Object> fieldList) setHintMap(Map<String, Object> h) setLimit(int limit) voidsetMaxTimeMS(Integer max) setNorQueries(List<Query<T>> norQueries) setOrQueries(List<Query<T>> orQueries) setOverrideDB(String overrideDB) setProjection(Enum... fl) setProjection(String... fl) setRawQuery(Map<String, Object> rawQuery) setReadPreferenceLevel(ReadPreferenceLevel readPreferenceLevel) setSkip(int skip) skip(int i) this does not check for existence of the Field!voidtail(int batchSize, int maxWait, AsyncOperationCallback<T> cb) do a tail querytext(Query.TextSearchLanguages lang, boolean caseSensitive, boolean diacriticSensitive, String... text) text(Query.TextSearchLanguages lang, String... text) text(String metaScoreField, Query.TextSearchLanguages lang, boolean caseSensitive, boolean diacriticSensitive, String... text) text(String metaScoreField, Query.TextSearchLanguages lang, String... text) textSearch(Query.TextSearchLanguages lang, String... texts) Veraltet.textSearch(String... texts) Veraltet.toString()
-
Konstruktordetails
-
Query
-
Query
-
-
Methodendetails
-
getHint
-
setHintString
-
setHintMap
-
getBatchSize
public int getBatchSize() -
setBatchSize
-
getCollation
-
setCollation
-
getDB
-
overrideDB
-
getTags
-
addTag
-
disableAutoValues
-
enableAutoValues
-
isAutoValuesEnabled
public boolean isAutoValuesEnabled() -
setAutoValuesEnabled
-
getServer
-
getExecutor
-
setExecutor
-
getWhere
-
getMorphium
-
setMorphium
-
getReadPreferenceLevel
-
setReadPreferenceLevel
-
q
-
complexQuery
Veraltet.use rawQuery instead- Parameter:
query-- Gibt zurück:
-
complexQuery
use rawQuery() instead- Parameter:
query-sort-skip-limit-- Gibt zurück:
-
explain
- Löst aus:
MorphiumDriverException
-
explain
public Map<String,Object> explain(ExplainCommand.ExplainVerbosity verbosity) throws MorphiumDriverException - Löst aus:
MorphiumDriverException
-
findOneAndDelete
-
findOneAndUpdate
-
findOneAndUpdateEnums
-
getARHelper
-
setARHelper
-
complexQueryCount
-
rawQuery
-
complexQuery
@Deprecated public List<T> complexQuery(Map<String, Object> query, Map<String, Integer> sort, int skip, int limit) Veraltet.use rawQuery to set query, and standard API- Parameter:
query- - query to be sentsort-skip- - amount to skiplimit- - maximium number of results- Gibt zurück:
-
getFieldListForQuery
-
explainDistinct
-
distinct
-
complexQueryOne
-
complexQueryOne
-
complexQueryOne
-
getLimit
public int getLimit() -
getSkip
public int getSkip() -
getSort
-
addChild
-
where
-
f
-
f
-
f
-
f
-
or
-
or
-
nor
-
limit
-
skip
-
sort
this does not check for existence of the Field! Key in the map can be any text- Parameter:
n-- Gibt zurück:
-
sortEnum
-
sort
-
sort
-
countAll
-
explainCount
public Map<String,Object> explainCount(ExplainCommand.ExplainVerbosity verbosity) throws MorphiumDriverException - Löst aus:
MorphiumDriverException
-
countAll
public long countAll() -
toQueryObject
-
expr
-
matchesJsonSchema
-
matchesJsonSchema
- Löst aus:
RuntimeException
-
getType
-
setType
-
asList
-
asMapList
-
asMapIterable
-
asList
-
asIterable
-
asIterable
-
getCursor
- Löst aus:
MorphiumDriverException
-
getById
Veraltet. -
getById
Veraltet. -
get
-
get
-
idList
-
idList
-
clone
-
remove
-
delete
-
set
-
set
-
setEnum
-
set
-
set
-
set
-
setEnum
-
set
-
set
-
set
-
setEnum
-
set
-
set
-
set
-
setEnum
-
set
-
unset
-
unset
-
unset
-
unset
-
push
-
push
-
push
-
push
-
pushAll
-
pushAll
-
pushAll
-
pushAll
-
pullAll
-
pullAll
-
pullAll
-
pullAll
-
pull
-
pull
-
pull
-
pull
-
pull
-
pull
-
pull
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
inc
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
dec
-
getNumberOfPendingRequests
public int getNumberOfPendingRequests() -
getCollectionName
-
setCollectionName
-
text
-
text
-
text
public Query<T> text(Query.TextSearchLanguages lang, boolean caseSensitive, boolean diacriticSensitive, String... text) -
text
public Query<T> text(String metaScoreField, Query.TextSearchLanguages lang, boolean caseSensitive, boolean diacriticSensitive, String... text) -
text
-
textSearch
Veraltet. -
textSearch
Veraltet. -
setProjection
-
setProjection
-
addProjection
-
addProjection
-
addProjection
-
addProjection
-
hideFieldInProjection
-
tail
do a tail query- Parameter:
batchSize- - determins how much data is read in one stepmaxWait- - how long to wait _at most_ for data, throws Exception otherwisecb- - the callback being called for _every single document_ - the entity field is filled, lists will be null
-
hideFieldInProjection
-
toString
-
getFindCmd
-
setMaxTimeMS
-
getMaxTimeMS
public int getMaxTimeMS() -
getLog
public static org.slf4j.Logger getLog() -
setWhere
-
getRawQuery
-
setRawQuery
-
getAndExpr
-
setAndExpr
-
getOrQueries
-
setOrQueries
-
getNorQueries
-
setNorQueries
-
isAdditionalDataPresent
public boolean isAdditionalDataPresent() -
setAdditionalDataPresent
-
setLimit
-
setSkip
-
setSort
-
getSrv
-
setSrv
-
getFieldList
-
setFieldList
-
setTags
-
getArHelper
-
setArHelper
-
getOverrideDB
-
setOverrideDB
-
getAdditionalFields
-
setAdditionalFields
-