Annotation Interface MongoFindOptions
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,TYPE})
@Documented
@Inherited
public @interface MongoFindOptions
Defines a custom MongoDB find query options.
- Since:
- 3.3.0
- Author:
- Denis Stepanov
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionbooleanThe allowDiskUse.intThe batchSize.The comment.com.mongodb.CursorTypeThe cursorType.The hint.intThe limit.The max.longThe maxAwaitTimeMS.longThe maxTimeMS.The min.booleanThe cursorType.booleanThe partial.booleanThe returnKey.booleanThe showRecordId.intThe skip.
- 
Element Details- 
batchSizeint batchSizeThe batchSize.- Returns:
- The batchSize value
 - Default:
- -1
 
- 
skipint skipThe skip.- Returns:
- The skip value
 - Default:
- -1
 
- 
limitint limitThe limit.- Returns:
- The limit value
 - Default:
- -1
 
- 
maxTimeMSlong maxTimeMSThe maxTimeMS.- Returns:
- The maxTimeMS value
 - Default:
- -1L
 
- 
maxAwaitTimeMSlong maxAwaitTimeMSThe maxAwaitTimeMS.- Returns:
- The maxAwaitTimeMS value
 - Default:
- -1L
 
- 
cursorTypecom.mongodb.CursorType cursorTypeThe cursorType.- Returns:
- The cursorType value
 - Default:
- NonTailable
 
- 
noCursorTimeoutboolean noCursorTimeoutThe cursorType.- Returns:
- The cursorType value
 - Default:
- false
 
- 
partialboolean partialThe partial.- Returns:
- The partial value
 - Default:
- false
 
- 
commentString commentThe comment.- Returns:
- The comment value
 - Default:
- ""
 
- 
hintString hintThe hint.- Returns:
- The hint value
 - Default:
- ""
 
- 
maxString maxThe max.- Returns:
- The max value
 - Default:
- ""
 
- 
minString minThe min.- Returns:
- The min value
 - Default:
- ""
 
- 
returnKeyboolean returnKeyThe returnKey.- Returns:
- The returnKey value
 - Default:
- false
 
- 
showRecordIdboolean showRecordIdThe showRecordId.- Returns:
- The showRecordId value
 - Default:
- false
 
- 
allowDiskUseboolean allowDiskUseThe allowDiskUse.- Returns:
- The allowDiskUse value
 - Default:
- false
 
 
-