Add Javadoc and since tags. Refine value lookup. Include missing properties in Meta.hashCode and equals. Update documentation using boolean Meta.allowDiskUse. Add assertions to prevent accidental null propagation.
See: #4667
Original pull request: #5035
@ -3558,7 +3558,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -3558,7 +3558,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -3419,7 +3419,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -3419,7 +3419,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -146,6 +146,8 @@ public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware
@@ -146,6 +146,8 @@ public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware
Assert.notNull(diskUse,"DiskUse must not be null");
this.diskUse=diskUse;
this.explain=explain;
this.cursor=Optional.ofNullable(cursor);
@ -442,7 +444,7 @@ public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware
@@ -442,7 +444,7 @@ public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware
*/
publicstaticclassBuilder{
private@NullableDiskUsediskUse=DiskUse.DEFAULT;
privateDiskUsediskUse=DiskUse.DEFAULT;
privatebooleanexplain;
private@NullableDocumentcursor;
private@NullableCollationcollation;
@ -470,10 +472,13 @@ public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware
@@ -470,10 +472,13 @@ public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware
@ -76,7 +76,7 @@ These are typically all query methods that are not backed by an xref:repositorie
@@ -76,7 +76,7 @@ These are typically all query methods that are not backed by an xref:repositorie
**Limitations**
* `@Meta.allowDiskUse` and `flags` are not evaluated.
* `@Meta.flags` is not evaluated.
* Limited `Collation` detection.
* No support for in-clauses with pattern matching / case insensitivity
@ -672,7 +672,7 @@ Use the `@Meta` annotation to set those options via `maxExecutionTimeMs`, `comme
@@ -672,7 +672,7 @@ Use the `@Meta` annotation to set those options via `maxExecutionTimeMs`, `comme
@ -684,7 +684,7 @@ Or use `@Meta` to create your own annotation as shown in the sample below.
@@ -684,7 +684,7 @@ Or use `@Meta` to create your own annotation as shown in the sample below.