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 Constructor Description ReadMongoCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>execute()MorphiumCursorexecuteIterable(int batchsize)ReadPreferencegetReadPreference()Iterator<Map<String,Object>>iterator()TsetReadPreference(ReadPreference readPreference)-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
asMap, clear, executeAsync, fromMap, getColl, getCommandName, getComment, getConnection, getDb, getMetaData, releaseConnection, setColl, setComment, setConnection, setDb, setMetaData, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface de.caluga.morphium.driver.commands.MultiResultCommand
asMap, getMetaData
-
-
-
-
Constructor Detail
-
ReadMongoCommand
public ReadMongoCommand(MongoConnection d)
-
-
Method Detail
-
getReadPreference
public ReadPreference getReadPreference()
-
setReadPreference
public T setReadPreference(ReadPreference readPreference)
-
iterator
public Iterator<Map<String,Object>> iterator()
- Specified by:
iteratorin interfaceIterable<T extends MongoCommand>
-
execute
public List<Map<String,Object>> execute() throws MorphiumDriverException
- Specified by:
executein interfaceMultiResultCommand- Throws:
MorphiumDriverException
-
executeIterable
public MorphiumCursor executeIterable(int batchsize) throws MorphiumDriverException
- Specified by:
executeIterablein interfaceMultiResultCommand- Throws:
MorphiumDriverException
-
-