Class ReadMongoCommand<T extends MongoCommand>
java.lang.Object
de.caluga.morphium.driver.commands.MongoCommand<T>
de.caluga.morphium.driver.commands.ReadMongoCommand<T>
- All Implemented Interfaces:
MultiResultCommand,Iterable<Map<String,Object>>
- Direct Known Subclasses:
AggregateMongoCommand,FindCommand,ListCollectionsCommand,MapReduceCommand
public abstract class ReadMongoCommand<T extends MongoCommand>
extends MongoCommand<T>
implements MultiResultCommand, Iterable<Map<String,Object>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()executeIterable(int batchsize) iterator()setReadPreference(ReadPreference readPreference) Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
asMap, clear, executeAsync, fromMap, getColl, getCommandName, getComment, getConnection, getDb, getDefaultBatchSize, getMetaData, getRetriesOnNetworkError, getSleepBetweenErrorRetries, setColl, setComment, setConnection, setDb, setDefaultBatchSize, setMetaData, setMetaData, setRetriesOnNetworkError, setSleepBetweenErrorRetriesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface de.caluga.morphium.driver.commands.MultiResultCommand
asMap, getMetaData
-
Constructor Details
-
ReadMongoCommand
-
-
Method Details
-
getReadPreference
-
setReadPreference
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends MongoCommand>
-
execute
- Specified by:
executein interfaceMultiResultCommand- Throws:
MorphiumDriverException
-
executeIterable
- Specified by:
executeIterablein interfaceMultiResultCommand- Throws:
MorphiumDriverException
-