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) asIterable(int windowSize, Class<? extends QueryIterator<T>> it) asIterable(QueryIterator<T> ret) 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()voidvoidvoidvoiddec(Enum field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(Enum field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(Enum field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(Enum field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(String field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(String field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(String field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidvoiddec(String field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voiddelete()findOneAndUpdate(Map<String, Object> update) findOneAndUpdateEnums(Map<Enum, Object> update) get()voidget(AsyncOperationCallback<T> callback) intVeraltet.voidgetById(Object id, AsyncOperationCallback<T> callback) Veraltet.getDB()intgetLimit()intintgetSkip()getSort()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) booleanlimit(int i) matchesJsonSchema(String schemaDef) matchesJsonSchema(Map<String, Object> schemaDef) voidoverrideDB(String overrideDB) voidvoidvoidpull(Enum field, Expr value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpull(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpull(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpullAll(Enum field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpullAll(String field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpush(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpush(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpushAll(Enum field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) voidvoidpushAll(String field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) q()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) voidsetAutoValuesEnabled(boolean autoValuesEnabled) setBatchSize(int batchSize) setCollation(Collation collation) voidsetExecutor(ThreadPoolExecutor executor) voidsetProjection(Enum... fl) setProjection(String... fl) voidsetReadPreferenceLevel(ReadPreferenceLevel readPreferenceLevel) voidskip(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
-
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:
-
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
-
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
-
countAll
public long countAll() -
toQueryObject
-
expr
-
matchesJsonSchema
-
matchesJsonSchema
- Löst aus:
org.json.simple.parser.ParseException
-
getType
-
setType
-
asList
-
asMapList
-
asMapIterable
-
asList
-
asIterable
-
asIterable
-
asIterable
-
getCursor
- Löst aus:
MorphiumDriverException
-
asIterable
-
getById
Veraltet. -
getById
Veraltet. -
get
-
get
-
idList
-
idList
-
clone
-
delete
public void delete() -
set
-
set
-
setEnum
-
set
-
set
-
set
-
setEnum
-
set
-
set
-
set
-
setEnum
-
set
-
set
-
set
-
setEnum
-
set
-
push
-
push
-
push
public void push(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
push
public void push(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pushAll
-
pushAll
-
pushAll
public void pushAll(String field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pushAll
public void pushAll(Enum field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pullAll
-
pullAll
-
pullAll
public void pullAll(String field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pullAll
public void pullAll(Enum field, List value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pull
-
pull
-
pull
public void pull(String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pull
public void pull(Enum field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
pull
public void pull(Enum field, Expr value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
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
public void dec(Enum field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(String field, Integer value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(Enum field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(String field, Double value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(Enum field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(String field, Long value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(Enum field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
dec
public void dec(String field, Number value, boolean upsert, boolean multiple, AsyncOperationCallback<T> cb) -
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
-