Package de.caluga.morphium
Klasse Morphium
java.lang.Object
de.caluga.morphium.MorphiumBase
de.caluga.morphium.Morphium
- Alle implementierten Schnittstellen:
AutoCloseable
This is the single access point for accessing MongoDB. This conains a ton of convenience Methods
in a nutshell: all write access goes from Morphium->correct Writer
all read access done via query.
- Autor:
- stephan
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidvoidaddListener(MorphiumStorageListener<?> lst) voidMap<Class<?>, List<IndexDescription>> run trhough classpath, find all Entities, check indices returns a list of Entities, whos indices are missing or differentMap<Class<?>, List<IndexDescription>> checkIndices(io.github.classgraph.ClassInfoList.ClassInfoFilter filter) voidclearCachefor(Class<?> cls) Erase cache entries for the given type. is being called after every store depending on cache settings!voidclearCacheforClassIfNecessary(Class<?> cls) voidclearCollection(Class<?> cls) issues a remove command - no lifecycle methods calles, no drop, keeps all indexec this wayvoidclearCollection(Class<?> cls, String colName) issues a remove command - no lifecycle methods calles, no drop, keeps all indexec this way But uses sepcified collection name instead deriving name from classvoidclearCollectionOneByOne(Class<?> cls) clears every single object in collection - reads ALL objects to do so this way Lifecycle methods can be called!voidclose()void<T,R> Aggregator <T, R> createAggregator(Class<? extends T> type, Class<? extends R> resultType) createBulkRequestContext(Class<?> type, boolean ordered) createBulkRequestContext(String collection, boolean ordered) <T> voidcreateIndex(Class<T> cls, String collection, IndexDescription index, AsyncOperationCallback<T> callback) createIndexKeyMapFrom(String[] fldStr) <T> TcreateLazyLoadedEntity(Class<? extends T> cls, Object id, String collectionName) createMapQuery(String collection) <T> Query<T> createQueryByTemplate(T template, String... fields) <T> Query<T> createQueryFor(Class<? extends T> type) <T> Query<T> createQueryFor(Class<? extends T> type, String usingCollectionName) <T> voidVeraltet.<T> voiddelete(List<T> lst, String forceCollectionName, AsyncOperationCallback<T> callback) <T> TdeReference(T obj) de-references the given object of type T.voidvoidvoidvoidvoidreturns a distinct list of values of the given collection Attention: these values are not unmarshalled, you might get MongoMapUngültige Eingabe: "<"String,Object>svoiddropCollection(Class<?> cls) <T> voiddropCollection(Class<T> cls, AsyncOperationCallback<T> callback) <T> voiddropCollection(Class<T> cls, String collection, AsyncOperationCallback<T> callback) voidvoidvoidvoidvoid<T> voidensureCapped(Class<T> c) automatically convert the collection for the given type to a capped collection only works if @Capped annotation is given for type<T> voidensureCapped(Class<T> c, AsyncOperationCallback<T> callback) voidensureIndex(Class<?> cls, Enum... fldStr) voidensureIndex(Class<?> cls, String... fldStr) voidvoidvoidensureIndex(Class<?> cls, Map<String, Object> index) <T> voidensureIndex(Class<T> cls, AsyncOperationCallback<T> callback, Enum... fldStr) ensureIndex(CachedObject.class,"counter","-value"); ensureIndex(CachedObject.class,"counter:2d","-value); Similar to sorting<T> voidensureIndex(Class<T> cls, AsyncOperationCallback<T> callback, String... fldStr) <T> voidensureIndex(Class<T> cls, String collection, AsyncOperationCallback<T> callback, Enum... fldStr) <T> voidensureIndex(Class<T> cls, String collection, AsyncOperationCallback<T> callback, String... fldStr) <T> voidensureIndex(Class<T> cls, String collection, Map<String, Object> index, AsyncOperationCallback<T> callback) <T> voidensureIndex(Class<T> cls, String collection, Map<String, Object> index, Map<String, Object> options, AsyncOperationCallback<T> callback) <T> voidensureIndex(Class<T> cls, Map<String, Object> index, AsyncOperationCallback<T> callback) <T> voidensureIndicesFor(Class<T> type, String onCollection, AsyncOperationCallback<T> callback, MorphiumWriter wr) explainMapReduce(Class<? extends T> type, String map, String reduce, ExplainCommand.ExplainVerbosity verbose) <T> List<T> Veraltet.- for read access useQueryinstead<T> List<T> findByField(Class<? extends T> cls, Enum<?> fld, Object val) <T> List<T> findByField(Class<? extends T> cls, String fld, Object val) <T> T<T> voidfindById(Class<? extends T> type, Object id, String collection, AsyncOperationCallback callback) <T> List<T> findByTemplate(T template, String... fields) Veraltet.not useful anymore.voidfirePostDropEvent(Class cls) <T> voidfirePostLoad(List<T> loaded) voidwill be called by query after unmarshalling<T> voidfirePostRemove(List<T> toRemove) voidvoidvoidfirePostStore(Object o, boolean isNew) <T> voidfirePostStore(Map<T, Boolean> isNew) voidvoidfirePreDrop(Class cls) void<T> voidfirePreRemove(List<T> lst) voidvoidfirePreStore(Object o, boolean isNew) voidfirePreStore(Map<Object, Boolean> isNew) voidvoidflush()voidintintintgetCache()getCollStats(Class<?> coll) getCollStats(String coll) longgetDbStats(String db) intgetEstimatedCount(Class<?> type) <T> List<IndexDescription> getIndexesFromEntity(Class<T> type) getIndexesFromMongo(Class cls) getIndexesFromMongo(String collection) getMissingIndicesFor(Class<?> entity) getMissingIndicesFor(Class<?> entity, String collection) getNameProviderForClass(Class<?> cls) intgetReadConcernForClass(Class<?> cls) getReadPreferenceForClass(Class<?> cls) getStats()intgetWriteConcernForClass(Class<?> cls) intgetWriterForClass(Class<?> cls) inc(Query<T> query, Map<String, Number> toUpdate, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) voidinc(StatisticKeys k) inc(Map<Enum, Number> fieldsToInc, Query<T> matching, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) <T> voidinsertList(List lst, String collection, AsyncOperationCallback<T> callback) booleanbooleanbooleanbooleanbooleanChecks if javax.validation is available and enables validation support.boolean<T> QueryIterator<? extends T> iterateAll(Class<? extends T> type) <T> QueryIterator<? extends T> iterateAll(Class<? extends T> type, Map<?, ?> sort) listCollections(String pattern) <T> List<T> pull(T entity, String field, Expr value, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) push(Query<T> query, String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) voidvoid<T> List<T> return a list of all elements stored in morphium for this type<T> List<T> voidreconnectToDb(String db) voidvoid<T> Treread(T o) careful this actually changes the parameter o!<T> Tvoidreset()void<T> voidsaveList(List<T> lst, AsyncOperationCallback<T> callback) <T> voidsaveList(List<T> lst, String collection, AsyncOperationCallback<T> callback) <T> voidset(T toSet, String collection, boolean upserts, Map<Enum, Object> values, AsyncOperationCallback<T> callback) Veraltet.There is a newer implementation.<T> voidset(T toSet, String collection, Map<String, Object> values, boolean upserts, AsyncOperationCallback<T> callback) Veraltet.There is a newer implementation.<T> booleansetAutoValues(T o) voidsetConfig(MorphiumConfig cfg) voidsetDriver(MorphiumDriver drv) <T> voidsetInEntity(T entity, String collection, boolean upserts, Map<Enum, Object> values, AsyncOperationCallback<T> callback) <T> voidsetInEntity(T entity, String collection, Map<String, Object> values, boolean upserts, AsyncOperationCallback<T> callback) voidsetNameProviderForClass(Class<?> cls, NameProvider pro) voidvoid<T> voidstore(List<T> lst, String collectionName, AsyncOperationCallback<T> callback) directly writes data to Mongo, no Mapper used use with caution, as caches are not updated also no checks for validity of fields, no references, no auto-variables no async writing!directly writes data to Mongo, no Mapper used use with caution, as caches are not updated also no checks for validity of fields, no references, no auto-variables no async writing!directly writes data to Mongo, no Mapper used use with caution, as caches are not updated also no checks for validity of fields, no references, no auto-variables no async writing!toString()<T> voidunset(T toSet, String collection, String field, AsyncOperationCallback<T> callback) Veraltet.use {MorphiumunsetInEntity(Object, String, String, AsyncOperationCallback)instead.<T> voidunsetInEntity(T toSet, String collection, String field, AsyncOperationCallback<T> callback) <T> voidwatch(Class<T> entity, boolean updateFull, ChangeStreamListener lst) <T> voidwatch(Class<T> entity, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) <T> voidwatch(String collectionName, boolean updateFull, ChangeStreamListener lst) <T> voidwatch(String collectionName, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) <T> voidwatch(String collectionName, int maxWaitTime, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) <T> voidwatchAsync(Class<T> entity, boolean updateFull, ChangeStreamListener lst) <T> voidwatchAsync(Class<T> entity, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) <T> voidwatchAsync(String collectionName, boolean updateFull, ChangeStreamListener lst) <T> voidwatchAsync(String collectionName, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) <T> voidwatchDb(boolean updateFull, ChangeStreamListener lst) <T> voidwatchDb(String dbName, boolean updateFull, ChangeStreamListener lst) <T> voidwatchDb(String dbName, boolean updateFull, List<Map<String, Object>> pipeline, AtomicBoolean runningFlag, ChangeStreamListener lst) <T> voidwatchDb(String dbName, int maxWaitTime, boolean updateFull, List<Map<String, Object>> pipeline, AtomicBoolean runningFlag, ChangeStreamListener lst) <T> AtomicBooleanwatchDbAsync(boolean updateFull, AtomicBoolean runningFlag, ChangeStreamListener lst) <T> AtomicBooleanwatchDbAsync(boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) <T> AtomicBooleanwatchDbAsync(String dbName, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) intVon Klasse geerbte Methoden de.caluga.morphium.MorphiumBase
addAllToSet, addAllToSet, addAllToSet, addToSet, addToSet, addToSet, currentDate, currentDate, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, dec, delete, delete, delete, delete, delete, delete, delete, distinct, distinct, distinct, distinct, ensureIndicesFor, ensureIndicesFor, ensureIndicesFor, ensureIndicesFor, exists, exists, exists, explainRemove, explainRemove, findById, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, inc, insert, insert, insert, insertList, insertList, pull, pull, pull, pull, pull, pull, pullAll, pullAll, pullAll, push, push, push, push, push, push, push, pushAll, pushAll, pushAll, pushPull, pushPullAll, remove, remove, remove, remove, remove, remove, remove, remove, remove, save, save, save, save, saveList, saveList, saveList, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setEnum, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, setInEntity, store, store, store, store, storeBuffered, storeBuffered, storeBuffered, storeList, storeList, storeList, storeList, storeList, storeMaps, storeNoCache, storeNoCache, storeNoCache, storeNoCache, unset, unset, unset, unset, unset, unset, unsetInEntity, unsetInEntity, unsetInEntity, unsetInEntity, unsetInEntity, unsetInEntity, unsetQ, unsetQ, unsetQ, unsetQ, unsetQ, unsetQ, unsetQ, unsetQ, updateUsingFields, updateUsingFields, updateUsingFields, updateUsingFields, updateUsingFields, updateUsingFields
-
Konstruktordetails
-
Morphium
public Morphium() -
Morphium
-
Morphium
-
Morphium
init the MongoDbLayer. Uses Morphium-Configuration Object for Configuration. Needs to be set before use or RuntimeException is thrown! us used for de-referencing and automatical save of referenced entities all logging is done in INFO level- Siehe auch:
-
-
Methodendetails
-
getAlternativeMorphiums
-
getConfig
- Angegeben von:
getConfigin KlasseMorphiumBase
-
setConfig
-
getAsyncOperationsThreadPool
-
getValueEncrpytionProvider
-
getEncryptionKeyProvider
-
getCache
-
isValidationEnabled
public boolean isValidationEnabled()Checks if javax.validation is available and enables validation support.- Gibt zurück:
- true, if validation is supported
-
disableValidation
public void disableValidation() -
enableValidation
public void enableValidation() -
listDatabases
-
listCollections
-
listCollections
-
reconnectToDb
-
addListener
-
removeListener
-
getDriver
- Angegeben von:
getDriverin KlasseMorphiumBase
-
setDriver
-
createMapQuery
-
createQueryByTemplate
-
findByTemplate
Veraltet.not useful anymore.search for objects similar to template concerning all given fields. If no fields are specified, all NON Null-Fields are taken into account if specified, field might also be null- Typparameter:
T- - type- Parameter:
template- - what to search forfields- - fields to use for searching- Gibt zurück:
- result of search
-
unset
@Deprecated public <T> void unset(T toSet, String collection, String field, AsyncOperationCallback<T> callback) Veraltet.use {MorphiumunsetInEntity(Object, String, String, AsyncOperationCallback)instead.This method unsets a field- Angegeben von:
unsetin KlasseMorphiumBase
-
unsetInEntity
public <T> void unsetInEntity(T toSet, String collection, String field, AsyncOperationCallback<T> callback) - Angegeben von:
unsetInEntityin KlasseMorphiumBase
-
runCommand
public List<Map<String,Object>> runCommand(String command, String collection, Map<String, Object> cmdMap) throws MorphiumDriverException- Löst aus:
MorphiumDriverException
-
ensureCapped
automatically convert the collection for the given type to a capped collection only works if @Capped annotation is given for type- Parameter:
c- - type
-
ensureCapped
-
simplifyQueryObject
-
push
public <T> Map<String,Object> push(Query<T> query, String field, Object value, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) - Angegeben von:
pushin KlasseMorphiumBase
-
push
- Angegeben von:
pushin KlasseMorphiumBase
-
pull
public <T> Map<String,Object> pull(T entity, String field, Expr value, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) - Angegeben von:
pullin KlasseMorphiumBase
-
saveList
- Angegeben von:
saveListin KlasseMorphiumBase
-
set
@Deprecated public <T> void set(T toSet, String collection, boolean upserts, Map<Enum, Object> values, AsyncOperationCallback<T> callback) Veraltet.There is a newer implementation. Please usesetInEntity()instead.This method sets a map of properties (defined by enums in the map) with their associated values- Angegeben von:
setin KlasseMorphiumBase
-
setInEntity
public <T> void setInEntity(T entity, String collection, boolean upserts, Map<Enum, Object> values, AsyncOperationCallback<T> callback) - Angegeben von:
setInEntityin KlasseMorphiumBase
-
set
@Deprecated public <T> void set(T toSet, String collection, Map<String, Object> values, boolean upserts, AsyncOperationCallback<T> callback) Veraltet.There is a newer implementation. Please usesetInEntity(Object, String, Map, boolean, AsyncOperationCallback)instead.This method sets a map of properties with their associated values- Angegeben von:
setin KlasseMorphiumBase
-
setInEntity
public <T> void setInEntity(T entity, String collection, Map<String, Object> values, boolean upserts, AsyncOperationCallback<T> callback) - Angegeben von:
setInEntityin KlasseMorphiumBase
-
getDbStats
- Löst aus:
MorphiumDriverException
-
getDbStats
- Löst aus:
MorphiumDriverException
-
getCollStats
- Löst aus:
MorphiumDriverException
-
getCollStats
- Löst aus:
MorphiumDriverException
-
inc
public <T> Map<String,Object> inc(Map<Enum, Number> fieldsToInc, Query<T> matching, boolean upsert, boolean multiple, AsyncOperationCallback<T> callback) - Angegeben von:
incin KlasseMorphiumBase
-
inc
-
getWriterForClass
- Angegeben von:
getWriterForClassin KlasseMorphiumBase
-
delete
Veraltet.* Use remove instead, to make it more similar to mongosh -
delete
@Deprecated public <T> void delete(List<T> lst, String forceCollectionName, AsyncOperationCallback<T> callback) * Use remove instead, to make it more similar to mongosh -
inc
-
getMapper
- Angegeben von:
getMapperin KlasseMorphiumBase
-
getARHelper
- Angegeben von:
getARHelperin KlasseMorphiumBase
-
reread
public <T> T reread(T o) careful this actually changes the parameter o!- Typparameter:
T- - tpye of the object- Parameter:
o- - object to read- Gibt zurück:
- - entity
-
reread
-
firePreStore
-
firePostStore
-
firePreDrop
-
firePostStore
-
firePostRemove
-
firePostLoad
-
firePreStore
-
firePreRemove
-
firePreRemove
-
firePostDropEvent
-
firePostUpdateEvent
-
firePreUpdateEvent
-
firePostRemoveEvent
-
firePostRemoveEvent
-
firePreRemoveEvent
-
deReference
public <T> T deReference(T obj) de-references the given object of type T. If itself or any of its members is a Proxy (PartiallyUpdateableProxy or LazyDeReferencingProxy), it'll be removed and replaced by the real objet. This is not recursive, only the members here are de-referenced- Typparameter:
T- - type- Parameter:
obj- - the object to replact- Gibt zurück:
- the dereferenced object
-
setNameProviderForClass
-
getNameProviderForClass
-
firePostLoadEvent
will be called by query after unmarshalling- Parameter:
o- - entitiy
-
isReplicaSet
public boolean isReplicaSet() -
getReadConcernForClass
-
getReadPreferenceForClass
-
createBulkRequestContext
-
createBulkRequestContext
-
getWriteConcernForClass
-
clearCollection
issues a remove command - no lifecycle methods calles, no drop, keeps all indexec this way- Parameter:
cls- - class
-
clearCollection
issues a remove command - no lifecycle methods calles, no drop, keeps all indexec this way But uses sepcified collection name instead deriving name from class- Parameter:
cls- - classcolName- - CollectionName
-
clearCollectionOneByOne
clears every single object in collection - reads ALL objects to do so this way Lifecycle methods can be called!- Parameter:
cls- -class
-
readAll
return a list of all elements stored in morphium for this type- Typparameter:
T- - Type- Parameter:
cls- - type to search for, needs to be an Property- Gibt zurück:
- - list of all elements stored
-
createQueryFor
-
createQueryFor
-
iterateAll
-
iterateAll
-
readAll
-
getEstimatedCount
-
getCount
-
find
Veraltet.- for read access useQueryinsteaduse query.asList() instead- Typparameter:
T-- Parameter:
q-- Gibt zurück:
-
distinct
returns a distinct list of values of the given collection Attention: these values are not unmarshalled, you might get MongoMapUngültige Eingabe: "<"String,Object>s- Angegeben von:
distinctin KlasseMorphiumBase
-
distinct
- Angegeben von:
distinctin KlasseMorphiumBase
-
distinct
- Angegeben von:
distinctin KlasseMorphiumBase
-
findById
public <T> void findById(Class<? extends T> type, Object id, String collection, AsyncOperationCallback callback) - Angegeben von:
findByIdin KlasseMorphiumBase
-
findById
- Angegeben von:
findByIdin KlasseMorphiumBase
-
findByField
-
findByField
-
setAutoValues
- Löst aus:
IllegalAccessException
-
clearCachefor
Erase cache entries for the given type. is being called after every store depending on cache settings!- Parameter:
cls- - class
-
clearCacheforClassIfNecessary
-
flush
public void flush() -
flush
-
getId
- Angegeben von:
getIdin KlasseMorphiumBase
-
dropCollection
-
dropCollection
-
dropCollection
-
ensureIndicesFor
public <T> void ensureIndicesFor(Class<T> type, String onCollection, AsyncOperationCallback<T> callback, MorphiumWriter wr) - Angegeben von:
ensureIndicesForin KlasseMorphiumBase
-
ensureIndex
-
ensureIndex
-
ensureIndex
-
ensureIndex
ensureIndex(CachedObject.class,"counter","-value"); ensureIndex(CachedObject.class,"counter:2d","-value); Similar to sorting- Parameter:
cls- - classfldStr- - fields
-
ensureIndex
public <T> void ensureIndex(Class<T> cls, String collection, AsyncOperationCallback<T> callback, Enum... fldStr) -
ensureIndex
-
ensureIndex
public <T> void ensureIndex(Class<T> cls, String collection, AsyncOperationCallback<T> callback, String... fldStr) -
ensureIndex
public <T> void ensureIndex(Class<T> cls, Map<String, Object> index, AsyncOperationCallback<T> callback) -
ensureIndex
-
ensureIndex
-
createIndex
public <T> void createIndex(Class<T> cls, String collection, IndexDescription index, AsyncOperationCallback<T> callback) -
getIndexesFromMongo
-
getIndexesFromMongo
-
getIndexesFromEntity
-
writeBufferCount
public int writeBufferCount() -
store
-
createIndexKeyMapFrom
-
getDatabase
- Angegeben von:
getDatabasein KlasseMorphiumBase
-
ensureIndex
-
ensureIndex
-
insertList
- Angegeben von:
insertListin KlasseMorphiumBase
-
saveMaps
public Map<String,Integer> saveMaps(Class type, List<Map<String, Object>> lst) throws MorphiumDriverException- Angegeben von:
saveMapsin KlasseMorphiumBase- Löst aus:
MorphiumDriverException
-
storeMaps
public Map<String,Integer> storeMaps(String collection, List<Map<String, Object>> lst) throws MorphiumDriverExceptiondirectly writes data to Mongo, no Mapper used use with caution, as caches are not updated also no checks for validity of fields, no references, no auto-variables no async writing!- Parameter:
collection- - name of colleciton to write tolst- - list of entries to write- Gibt zurück:
- statistics
- Löst aus:
MorphiumDriverException
-
saveMaps
public Map<String,Integer> saveMaps(String collection, List<Map<String, Object>> lst) throws MorphiumDriverException- Löst aus:
MorphiumDriverException
-
storeMap
public Map<String,Integer> storeMap(String collection, Map<String, Object> m) throws MorphiumDriverExceptiondirectly writes data to Mongo, no Mapper used use with caution, as caches are not updated also no checks for validity of fields, no references, no auto-variables no async writing!- Parameter:
collection- collection namem- data to write- Gibt zurück:
- statistics
- Löst aus:
MorphiumDriverException
-
saveMap
public Map<String,Integer> saveMap(String collection, Map<String, Object> m) throws MorphiumDriverException- Löst aus:
MorphiumDriverException
-
storeMap
directly writes data to Mongo, no Mapper used use with caution, as caches are not updated also no checks for validity of fields, no references, no auto-variables no async writing!- Parameter:
type- - type, used to determine collection namem- - data to write- Gibt zurück:
- statistics
- Löst aus:
MorphiumDriverException
-
saveList
- Angegeben von:
saveListin KlasseMorphiumBase
-
getStatistics
-
resetStatistics
public void resetStatistics() -
getStats
-
getShutDownListeners
-
addShutdownListener
-
removeShutdownListener
-
close
public void close()- Angegeben von:
closein SchnittstelleAutoCloseable
-
createCamelCase
-
explainMapReduce
public <T> Map<String,Object> explainMapReduce(Class<? extends T> type, String map, String reduce, ExplainCommand.ExplainVerbosity verbose) throws MorphiumDriverException - Löst aus:
MorphiumDriverException
-
mapReduce
public <T> List<T> mapReduce(Class<? extends T> type, String map, String reduce) throws MorphiumDriverException - Löst aus:
MorphiumDriverException
-
createAggregator
public <T,R> Aggregator<T,R> createAggregator(Class<? extends T> type, Class<? extends R> resultType) -
createLazyLoadedEntity
-
getWriteBufferCount
public int getWriteBufferCount() -
getBufferedWriterBufferCount
public int getBufferedWriterBufferCount() -
getAsyncWriterBufferCount
public int getAsyncWriterBufferCount() -
getWriterBufferCount
public int getWriterBufferCount() -
disableAutoValuesForThread
public void disableAutoValuesForThread() -
enableAutoValuesForThread
public void enableAutoValuesForThread() -
isAutoValuesEnabledForThread
public boolean isAutoValuesEnabledForThread() -
disableReadCacheForThread
public void disableReadCacheForThread() -
enableReadCacheForThread
public void enableReadCacheForThread() -
isReadCacheEnabledForThread
public boolean isReadCacheEnabledForThread() -
disableWriteBufferForThread
public void disableWriteBufferForThread() -
enableWriteBufferForThread
public void enableWriteBufferForThread() -
isWriteBufferEnabledForThread
public boolean isWriteBufferEnabledForThread()- Angegeben von:
isWriteBufferEnabledForThreadin KlasseMorphiumBase
-
disableAsyncWritesForThread
public void disableAsyncWritesForThread() -
enableAsyncWritesForThread
public void enableAsyncWritesForThread() -
isAsyncWritesEnabledForThread
public boolean isAsyncWritesEnabledForThread() -
queueTask
-
getNumberOfAvailableThreads
public int getNumberOfAvailableThreads() -
getActiveThreads
public int getActiveThreads() -
startTransaction
public void startTransaction() -
getTransaction
-
setTransaction
-
commitTransaction
public void commitTransaction() -
abortTransaction
public void abortTransaction() -
watchAsync
-
watchAsync
-
watchAsync
-
watchAsync
-
watch
-
watch
-
watch
-
watch
-
watch
-
watchDbAsync
public <T> AtomicBoolean watchDbAsync(String dbName, boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) -
watchDbAsync
public <T> AtomicBoolean watchDbAsync(boolean updateFull, AtomicBoolean runningFlag, ChangeStreamListener lst) -
watchDbAsync
public <T> AtomicBoolean watchDbAsync(boolean updateFull, List<Map<String, Object>> pipeline, ChangeStreamListener lst) -
watchDb
-
watchDb
-
watchDb
public <T> void watchDb(String dbName, boolean updateFull, List<Map<String, Object>> pipeline, AtomicBoolean runningFlag, ChangeStreamListener lst) -
watchDb
public <T> void watchDb(String dbName, int maxWaitTime, boolean updateFull, List<Map<String, Object>> pipeline, AtomicBoolean runningFlag, ChangeStreamListener lst) -
reset
public void reset() -
getMissingIndicesFor
- Löst aus:
MorphiumDriverException
-
getMissingIndicesFor
public List<IndexDescription> getMissingIndicesFor(Class<?> entity, String collection) throws MorphiumDriverException - Löst aus:
MorphiumDriverException
-
checkIndices
run trhough classpath, find all Entities, check indices returns a list of Entities, whos indices are missing or different -
checkCapped
-
checkIndices
public Map<Class<?>,List<IndexDescription>> checkIndices(io.github.classgraph.ClassInfoList.ClassInfoFilter filter) -
toString
-
MorphiumBase.remove(List, String)