Class FindCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<T>
-
- de.caluga.morphium.driver.commands.ReadMongoCommand<FindCommand>
-
- de.caluga.morphium.driver.commands.FindCommand
-
- All Implemented Interfaces:
MultiResultCommand,Iterable<Map<String,Object>>
public class FindCommand extends ReadMongoCommand<FindCommand>
-
-
Constructor Summary
Constructors Constructor Description FindCommand(MongoConnection d)
-
Method Summary
-
Methods inherited from class de.caluga.morphium.driver.commands.ReadMongoCommand
execute, executeIterable, getReadPreference, iterator, setReadPreference
-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
asMap, clear, executeAsync, fromMap, getColl, 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
-
FindCommand
public FindCommand(MongoConnection d)
-
-
Method Detail
-
getBatchSize
public Integer getBatchSize()
-
setBatchSize
public FindCommand setBatchSize(Integer batchSize)
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<FindCommand>
-
setFilter
public FindCommand setFilter(Map<String,Object> filter)
-
setSort
public FindCommand setSort(Map<String,Object> sort)
-
setProjection
public FindCommand setProjection(Map<String,Object> projection)
-
getHint
public Object getHint()
-
setHint
public FindCommand setHint(Object hint)
-
getSkip
public Integer getSkip()
-
setSkip
public FindCommand setSkip(Integer skip)
-
getLimit
public Integer getLimit()
-
setLimit
public FindCommand setLimit(Integer limit)
-
isSingleBatch
public Boolean isSingleBatch()
-
setSingleBatch
public FindCommand setSingleBatch(Boolean singleBatch)
-
getMaxTimeMS
public Integer getMaxTimeMS()
-
setMaxTimeMS
public FindCommand setMaxTimeMS(Integer maxTimeMS)
-
setMax
public FindCommand setMax(Map<String,Object> max)
-
setMin
public FindCommand setMin(Map<String,Object> min)
-
isReturnKey
public Boolean isReturnKey()
-
setReturnKey
public FindCommand setReturnKey(Boolean returnKey)
-
isShowRecordId
public Boolean isShowRecordId()
-
setShowRecordId
public FindCommand setShowRecordId(Boolean showRecordId)
-
isTailable
public Boolean isTailable()
-
setTailable
public FindCommand setTailable(Boolean tailable)
-
isOplogReplay
public Boolean isOplogReplay()
-
setOplogReplay
public FindCommand setOplogReplay(Boolean oplogReplay)
-
isNoCursorTimeout
public Boolean isNoCursorTimeout()
-
setNoCursorTimeout
public FindCommand setNoCursorTimeout(Boolean noCursorTimeout)
-
isAwaitData
public Boolean isAwaitData()
-
setAwaitData
public FindCommand setAwaitData(Boolean awaitData)
-
isAllowPartialResults
public Boolean isAllowPartialResults()
-
setAllowPartialResults
public FindCommand setAllowPartialResults(Boolean allowPartialResults)
-
setCollation
public FindCommand setCollation(Map<String,Object> collation)
-
isAllowDiskUse
public Boolean isAllowDiskUse()
-
setAllowDiskUse
public FindCommand setAllowDiskUse(Boolean allowDiskUse)
-
setLet
public FindCommand setLet(Map<String,Object> let)
-
getSingleBatch
public Boolean getSingleBatch()
-
getReturnKey
public Boolean getReturnKey()
-
getShowRecordId
public Boolean getShowRecordId()
-
getTailable
public Boolean getTailable()
-
getOplogReplay
public Boolean getOplogReplay()
-
getNoCursorTimeout
public Boolean getNoCursorTimeout()
-
getAwaitData
public Boolean getAwaitData()
-
getAllowPartialResults
public Boolean getAllowPartialResults()
-
getAllowDiskUse
public Boolean getAllowDiskUse()
-
-