@@ -64,7 +64,6 @@ public Mono<E> getByValue(Object value, ReturnType returnResultsOfType) {
64
64
* @param returnResultsOfType Type to return.
65
65
* @return A list of the records which match the given value.
66
66
*/
67
- @ SuppressWarnings ("unchecked" )
68
67
public Mono <E > getByValue (WritePolicy writePolicy , Object value , ReturnType returnResultsOfType ) {
69
68
if (writePolicy == null ) {
70
69
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -75,7 +74,7 @@ public Mono<E> getByValue(WritePolicy writePolicy, Object value, ReturnType retu
75
74
76
75
return reactiveAeroMapper .getReactorClient ()
77
76
.operate (writePolicy , key , interactor .getOperation ())
78
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
77
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
79
78
}
80
79
81
80
/**
@@ -137,7 +136,6 @@ public Mono<E> getByValueList(List<Object> values, ReturnType returnResultsOfTyp
137
136
* @param returnResultsOfType Type to return.
138
137
* @return A list of the records which match the given list of values.
139
138
*/
140
- @ SuppressWarnings ("unchecked" )
141
139
public Mono <E > getByValueList (WritePolicy writePolicy , List <Object > values , ReturnType returnResultsOfType ) {
142
140
if (writePolicy == null ) {
143
141
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -148,7 +146,7 @@ public Mono<E> getByValueList(WritePolicy writePolicy, List<Object> values, Retu
148
146
149
147
return reactiveAeroMapper .getReactorClient ()
150
148
.operate (writePolicy , key , interactor .getOperation ())
151
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
149
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
152
150
}
153
151
154
152
/**
@@ -170,7 +168,6 @@ public Mono<E> getByValueRelativeRankRange(Object value, int rank, ReturnType re
170
168
* @param returnResultsOfType Type to return.
171
169
* @return A list of records that matches the given value and rank.
172
170
*/
173
- @ SuppressWarnings ("unchecked" )
174
171
public Mono <E > getByValueRelativeRankRange (WritePolicy writePolicy , Object value , int rank , ReturnType returnResultsOfType ) {
175
172
if (writePolicy == null ) {
176
173
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -181,7 +178,7 @@ public Mono<E> getByValueRelativeRankRange(WritePolicy writePolicy, Object value
181
178
182
179
return reactiveAeroMapper .getReactorClient ()
183
180
.operate (writePolicy , key , interactor .getOperation ())
184
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
181
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
185
182
}
186
183
187
184
/**
@@ -205,7 +202,6 @@ public Mono<E> getByValueRelativeRankRange(Object value, int rank, int count, Re
205
202
* @param returnResultsOfType Type to return.
206
203
* @return A list of records that matches the given value, rank and count.
207
204
*/
208
- @ SuppressWarnings ("unchecked" )
209
205
public Mono <E > getByValueRelativeRankRange (WritePolicy writePolicy , Object value , int rank , int count , ReturnType returnResultsOfType ) {
210
206
if (writePolicy == null ) {
211
207
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -216,7 +212,7 @@ public Mono<E> getByValueRelativeRankRange(WritePolicy writePolicy, Object value
216
212
217
213
return reactiveAeroMapper .getReactorClient ()
218
214
.operate (writePolicy , key , interactor .getOperation ())
219
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
215
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
220
216
}
221
217
222
218
/**
@@ -236,7 +232,6 @@ public Mono<E> getByIndexRange(int index, ReturnType returnResultsOfType) {
236
232
* @param returnResultsOfType Type to return.
237
233
* @return A list of the records which match the given index.
238
234
*/
239
- @ SuppressWarnings ("unchecked" )
240
235
public Mono <E > getByIndexRange (WritePolicy writePolicy , int index , ReturnType returnResultsOfType ) {
241
236
if (writePolicy == null ) {
242
237
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -247,7 +242,7 @@ public Mono<E> getByIndexRange(WritePolicy writePolicy, int index, ReturnType re
247
242
248
243
return reactiveAeroMapper .getReactorClient ()
249
244
.operate (writePolicy , key , interactor .getOperation ())
250
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
245
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
251
246
}
252
247
253
248
/**
@@ -267,7 +262,6 @@ public Mono<E> getByIndexRange(int index, int count, ReturnType returnResultsOfT
267
262
* @param returnResultsOfType Type to return.
268
263
* @return A list of the records which match the given index and count.
269
264
*/
270
- @ SuppressWarnings ("unchecked" )
271
265
public Mono <E > getByIndexRange (WritePolicy writePolicy , int index , int count , ReturnType returnResultsOfType ) {
272
266
if (writePolicy == null ) {
273
267
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -278,7 +272,7 @@ public Mono<E> getByIndexRange(WritePolicy writePolicy, int index, int count, Re
278
272
279
273
return reactiveAeroMapper .getReactorClient ()
280
274
.operate (writePolicy , key , interactor .getOperation ())
281
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
275
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
282
276
}
283
277
284
278
/**
@@ -298,7 +292,6 @@ public Mono<E> getByRank(int rank, ReturnType returnResultsOfType) {
298
292
* @param returnResultsOfType Type to return.
299
293
* @return A list of the records which match the given rank.
300
294
*/
301
- @ SuppressWarnings ("unchecked" )
302
295
public Mono <E > getByRank (WritePolicy writePolicy , int rank , ReturnType returnResultsOfType ) {
303
296
if (writePolicy == null ) {
304
297
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -309,7 +302,7 @@ public Mono<E> getByRank(WritePolicy writePolicy, int rank, ReturnType returnRes
309
302
310
303
return reactiveAeroMapper .getReactorClient ()
311
304
.operate (writePolicy , key , interactor .getOperation ())
312
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
305
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
313
306
}
314
307
315
308
/**
@@ -329,7 +322,6 @@ public Mono<E> getByRankRange(int rank, ReturnType returnResultsOfType) {
329
322
* @param returnResultsOfType Type to return.
330
323
* @return A list of the records which match the given rank.
331
324
*/
332
- @ SuppressWarnings ("unchecked" )
333
325
public Mono <E > getByRankRange (WritePolicy writePolicy , int rank , ReturnType returnResultsOfType ) {
334
326
if (writePolicy == null ) {
335
327
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -340,7 +332,7 @@ public Mono<E> getByRankRange(WritePolicy writePolicy, int rank, ReturnType retu
340
332
341
333
return reactiveAeroMapper .getReactorClient ()
342
334
.operate (writePolicy , key , interactor .getOperation ())
343
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
335
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
344
336
}
345
337
346
338
/**
@@ -360,7 +352,6 @@ public Mono<E> getByRankRange(int rank, int count, ReturnType returnResultsOfTyp
360
352
* @param returnResultsOfType Type to return.
361
353
* @return A list of the records which match the given rank and count.
362
354
*/
363
- @ SuppressWarnings ("unchecked" )
364
355
public Mono <E > getByRankRange (WritePolicy writePolicy , int rank , int count , ReturnType returnResultsOfType ) {
365
356
if (writePolicy == null ) {
366
357
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -371,7 +362,7 @@ public Mono<E> getByRankRange(WritePolicy writePolicy, int rank, int count, Retu
371
362
372
363
return reactiveAeroMapper .getReactorClient ()
373
364
.operate (writePolicy , key , interactor .getOperation ())
374
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
365
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
375
366
}
376
367
377
368
/**
@@ -399,7 +390,6 @@ public Mono<E> getByKey(Object key, ReturnType returnResultsOfType) {
399
390
* @param returnResultsOfType Type to return.
400
391
* @return A list of the records which match the given key range.
401
392
*/
402
- @ SuppressWarnings ("unchecked" )
403
393
public Mono <E > getByKey (WritePolicy writePolicy , Object key , ReturnType returnResultsOfType ) {
404
394
if (writePolicy == null ) {
405
395
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -410,7 +400,7 @@ public Mono<E> getByKey(WritePolicy writePolicy, Object key, ReturnType returnRe
410
400
411
401
return reactiveAeroMapper .getReactorClient ()
412
402
.operate (writePolicy , this .key , interactor .getOperation ())
413
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
403
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
414
404
}
415
405
416
406
/**
@@ -510,7 +500,6 @@ public Mono<E> removeByValue(Object value, ReturnType returnResultsOfType) {
510
500
* @param returnResultsOfType Type to return.
511
501
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
512
502
*/
513
- @ SuppressWarnings ("unchecked" )
514
503
public Mono <E > removeByValue (WritePolicy writePolicy , Object value , ReturnType returnResultsOfType ) {
515
504
if (writePolicy == null ) {
516
505
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -521,7 +510,7 @@ public Mono<E> removeByValue(WritePolicy writePolicy, Object value, ReturnType r
521
510
522
511
return reactiveAeroMapper .getReactorClient ()
523
512
.operate (writePolicy , key , interactor .getOperation ())
524
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
513
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
525
514
}
526
515
527
516
/**
@@ -541,7 +530,6 @@ public Mono<E> removeByValueList(List<Object> values, ReturnType returnResultsOf
541
530
* @param returnResultsOfType Type to return.
542
531
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
543
532
*/
544
- @ SuppressWarnings ("unchecked" )
545
533
public Mono <E > removeByValueList (WritePolicy writePolicy , List <Object > values , ReturnType returnResultsOfType ) {
546
534
if (writePolicy == null ) {
547
535
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -552,7 +540,7 @@ public Mono<E> removeByValueList(WritePolicy writePolicy, List<Object> values, R
552
540
553
541
return reactiveAeroMapper .getReactorClient ()
554
542
.operate (writePolicy , key , interactor .getOperation ())
555
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
543
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
556
544
}
557
545
558
546
/**
@@ -594,7 +582,7 @@ public Mono<E> removeByValueRange(WritePolicy writePolicy, Object startValue, Ob
594
582
595
583
return reactiveAeroMapper .getReactorClient ()
596
584
.operate (writePolicy , key , interactor .getOperation ())
597
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
585
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
598
586
}
599
587
600
588
/**
@@ -616,7 +604,6 @@ public Mono<E> removeByValueRelativeRankRange(Object value, int rank, ReturnType
616
604
* @param returnResultsOfType Type to return.
617
605
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
618
606
*/
619
- @ SuppressWarnings ("unchecked" )
620
607
public Mono <E > removeByValueRelativeRankRange (WritePolicy writePolicy , Object value , int rank , ReturnType returnResultsOfType ) {
621
608
if (writePolicy == null ) {
622
609
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -627,7 +614,7 @@ public Mono<E> removeByValueRelativeRankRange(WritePolicy writePolicy, Object va
627
614
628
615
return reactiveAeroMapper .getReactorClient ()
629
616
.operate (writePolicy , key , interactor .getOperation ())
630
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
617
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
631
618
}
632
619
633
620
/**
@@ -651,7 +638,6 @@ public Mono<E> removeByValueRelativeRankRange(Object value, int rank, int count,
651
638
* @param returnResultsOfType Type to return.
652
639
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
653
640
*/
654
- @ SuppressWarnings ("unchecked" )
655
641
public Mono <E > removeByValueRelativeRankRange (WritePolicy writePolicy , Object value , int rank , int count , ReturnType returnResultsOfType ) {
656
642
if (writePolicy == null ) {
657
643
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -662,7 +648,7 @@ public Mono<E> removeByValueRelativeRankRange(WritePolicy writePolicy, Object va
662
648
663
649
return reactiveAeroMapper .getReactorClient ()
664
650
.operate (writePolicy , key , interactor .getOperation ())
665
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
651
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
666
652
}
667
653
668
654
/**
@@ -682,7 +668,6 @@ public Mono<E> removeByIndex(int index, ReturnType returnResultsOfType) {
682
668
* @param returnResultsOfType Type to return.
683
669
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
684
670
*/
685
- @ SuppressWarnings ("unchecked" )
686
671
public Mono <E > removeByIndex (WritePolicy writePolicy , int index , ReturnType returnResultsOfType ) {
687
672
if (writePolicy == null ) {
688
673
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -693,7 +678,7 @@ public Mono<E> removeByIndex(WritePolicy writePolicy, int index, ReturnType retu
693
678
694
679
return reactiveAeroMapper .getReactorClient ()
695
680
.operate (writePolicy , key , interactor .getOperation ())
696
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
681
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
697
682
}
698
683
699
684
/**
@@ -713,7 +698,6 @@ public Mono<E> removeByIndexRange(int index, ReturnType returnResultsOfType) {
713
698
* @param returnResultsOfType Type to return.
714
699
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
715
700
*/
716
- @ SuppressWarnings ("unchecked" )
717
701
public Mono <E > removeByIndexRange (WritePolicy writePolicy , int index , ReturnType returnResultsOfType ) {
718
702
if (writePolicy == null ) {
719
703
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -724,7 +708,7 @@ public Mono<E> removeByIndexRange(WritePolicy writePolicy, int index, ReturnType
724
708
725
709
return reactiveAeroMapper .getReactorClient ()
726
710
.operate (writePolicy , key , interactor .getOperation ())
727
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
711
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
728
712
}
729
713
730
714
/**
@@ -746,7 +730,6 @@ public Mono<E> removeByIndexRange(int index, int count, ReturnType returnResults
746
730
* @param returnResultsOfType Type to return.
747
731
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
748
732
*/
749
- @ SuppressWarnings ("unchecked" )
750
733
public Mono <E > removeByIndexRange (WritePolicy writePolicy , int index , int count , ReturnType returnResultsOfType ) {
751
734
if (writePolicy == null ) {
752
735
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -757,7 +740,7 @@ public Mono<E> removeByIndexRange(WritePolicy writePolicy, int index, int count,
757
740
758
741
return reactiveAeroMapper .getReactorClient ()
759
742
.operate (writePolicy , key , interactor .getOperation ())
760
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
743
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
761
744
}
762
745
763
746
/**
@@ -777,7 +760,6 @@ public Mono<E> removeByRank(int rank, ReturnType returnResultsOfType) {
777
760
* @param returnResultsOfType Type to return.
778
761
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
779
762
*/
780
- @ SuppressWarnings ("unchecked" )
781
763
public Mono <E > removeByRank (WritePolicy writePolicy , int rank , ReturnType returnResultsOfType ) {
782
764
if (writePolicy == null ) {
783
765
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -788,7 +770,7 @@ public Mono<E> removeByRank(WritePolicy writePolicy, int rank, ReturnType return
788
770
789
771
return reactiveAeroMapper .getReactorClient ()
790
772
.operate (writePolicy , key , interactor .getOperation ())
791
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
773
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
792
774
}
793
775
794
776
/**
@@ -808,7 +790,6 @@ public Mono<E> removeByRankRange(int rank, ReturnType returnResultsOfType) {
808
790
* @param returnResultsOfType Type to return.
809
791
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
810
792
*/
811
- @ SuppressWarnings ("unchecked" )
812
793
public Mono <E > removeByRankRange (WritePolicy writePolicy , int rank , ReturnType returnResultsOfType ) {
813
794
if (writePolicy == null ) {
814
795
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
@@ -819,7 +800,7 @@ public Mono<E> removeByRankRange(WritePolicy writePolicy, int rank, ReturnType r
819
800
820
801
return reactiveAeroMapper .getReactorClient ()
821
802
.operate (writePolicy , key , interactor .getOperation ())
822
- .map (keyRecord -> ( E ) interactor . getResult ( keyRecord . record . getList ( binName ) ));
803
+ .map (keyRecord -> getResultsWithDependencies ( keyRecord , interactor ));
823
804
}
824
805
825
806
/**
@@ -841,7 +822,6 @@ public Mono<E> removeByRankRange(int rank, int count, ReturnType returnResultsOf
841
822
* @param returnResultsOfType Type to return.
842
823
* @return A list of the records which have been removed from the database if returnResults is true, null otherwise.
843
824
*/
844
- @ SuppressWarnings ("unchecked" )
845
825
public Mono <E > removeByRankRange (WritePolicy writePolicy , int rank , int count , ReturnType returnResultsOfType ) {
846
826
if (writePolicy == null ) {
847
827
writePolicy = new WritePolicy (owningEntry .getWritePolicy ());
0 commit comments