/
BsKeyMatchCQ.java
2029 lines (1655 loc) · 68.6 KB
/
BsKeyMatchCQ.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright 2012-2024 CodeLibs Project and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.codelibs.fess.es.config.cbean.cq.bs;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import org.codelibs.fess.es.config.allcommon.EsAbstractConditionQuery;
import org.codelibs.fess.es.config.cbean.cq.KeyMatchCQ;
import org.dbflute.cbean.ckey.ConditionKey;
import org.opensearch.index.query.BoolQueryBuilder;
import org.opensearch.index.query.CommonTermsQueryBuilder;
import org.opensearch.index.query.ExistsQueryBuilder;
import org.opensearch.index.query.IdsQueryBuilder;
import org.opensearch.index.query.MatchPhrasePrefixQueryBuilder;
import org.opensearch.index.query.MatchPhraseQueryBuilder;
import org.opensearch.index.query.MatchQueryBuilder;
import org.opensearch.index.query.PrefixQueryBuilder;
import org.opensearch.index.query.RangeQueryBuilder;
import org.opensearch.index.query.RegexpQueryBuilder;
import org.opensearch.index.query.SpanTermQueryBuilder;
import org.opensearch.index.query.TermQueryBuilder;
import org.opensearch.index.query.TermsQueryBuilder;
import org.opensearch.index.query.WildcardQueryBuilder;
import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder;
import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder;
/**
* @author ESFlute (using FreeGen)
*/
public abstract class BsKeyMatchCQ extends EsAbstractConditionQuery {
protected static final Class<?> suppressUnusedImportLocalDateTime = LocalDateTime.class;
// ===================================================================================
// Name Override
// =============
@Override
public String asTableDbName() {
return "key_match";
}
@Override
public String xgetAliasName() {
return "key_match";
}
// ===================================================================================
// Query Control
// =============
public void functionScore(OperatorCall<KeyMatchCQ> queryLambda, ScoreFunctionCall<ScoreFunctionCreator<KeyMatchCQ>> functionsLambda,
final ConditionOptionCall<FunctionScoreQueryBuilder> opLambda) {
KeyMatchCQ cq = new KeyMatchCQ();
queryLambda.callback(cq);
final Collection<FilterFunctionBuilder> list = new ArrayList<>();
if (functionsLambda != null) {
functionsLambda.callback((cqLambda, scoreFunctionBuilder) -> {
KeyMatchCQ cf = new KeyMatchCQ();
cqLambda.callback(cf);
list.add(new FilterFunctionBuilder(cf.getQuery(), scoreFunctionBuilder));
});
}
final FunctionScoreQueryBuilder builder = regFunctionScoreQ(cq.getQuery(), list);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void filtered(FilteredCall<KeyMatchCQ, KeyMatchCQ> filteredLambda) {
filtered(filteredLambda, null);
}
public void filtered(FilteredCall<KeyMatchCQ, KeyMatchCQ> filteredLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
bool((must, should, mustNot, filter) -> {
filteredLambda.callback(must, filter);
}, opLambda);
}
public void not(OperatorCall<KeyMatchCQ> notLambda) {
not(notLambda, null);
}
public void not(final OperatorCall<KeyMatchCQ> notLambda, final ConditionOptionCall<BoolQueryBuilder> opLambda) {
bool((must, should, mustNot, filter) -> notLambda.callback(mustNot), opLambda);
}
public void bool(BoolCall<KeyMatchCQ> boolLambda) {
bool(boolLambda, null);
}
public void bool(BoolCall<KeyMatchCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
KeyMatchCQ mustQuery = new KeyMatchCQ();
KeyMatchCQ shouldQuery = new KeyMatchCQ();
KeyMatchCQ mustNotQuery = new KeyMatchCQ();
KeyMatchCQ filterQuery = new KeyMatchCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(),
mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
// ===================================================================================
// Query Set
// =========
public void setId_Equal(String id) {
setId_Term(id, null);
}
public void setId_Equal(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
setId_Term(id, opLambda);
}
public void setId_Term(String id) {
setId_Term(id, null);
}
public void setId_Term(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("_id", id);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setId_NotEqual(String id) {
setId_NotTerm(id, null);
}
public void setId_NotTerm(String id) {
setId_NotTerm(id, null);
}
public void setId_NotEqual(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setId_NotTerm(id, opLambda);
}
public void setId_NotTerm(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setId_Term(id), opLambda);
}
public void setId_Terms(Collection<String> idList) {
setId_Terms(idList, null);
}
public void setId_Terms(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
IdsQueryBuilder builder = regIdsQ(idList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setId_InScope(Collection<String> idList) {
setId_Terms(idList, null);
}
public void setId_InScope(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
setId_Terms(idList, opLambda);
}
@Deprecated
public BsKeyMatchCQ addOrderBy_Id_Asc() {
regOBA("_id");
return this;
}
@Deprecated
public BsKeyMatchCQ addOrderBy_Id_Desc() {
regOBD("_id");
return this;
}
public void setBoost_Equal(Float boost) {
setBoost_Term(boost, null);
}
public void setBoost_Equal(Float boost, ConditionOptionCall<TermQueryBuilder> opLambda) {
setBoost_Term(boost, opLambda);
}
public void setBoost_Term(Float boost) {
setBoost_Term(boost, null);
}
public void setBoost_Term(Float boost, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("boost", boost);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_NotEqual(Float boost) {
setBoost_NotTerm(boost, null);
}
public void setBoost_NotTerm(Float boost) {
setBoost_NotTerm(boost, null);
}
public void setBoost_NotEqual(Float boost, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setBoost_NotTerm(boost, opLambda);
}
public void setBoost_NotTerm(Float boost, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setBoost_Term(boost), opLambda);
}
public void setBoost_Terms(Collection<Float> boostList) {
setBoost_Terms(boostList, null);
}
public void setBoost_Terms(Collection<Float> boostList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("boost", boostList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_InScope(Collection<Float> boostList) {
setBoost_Terms(boostList, null);
}
public void setBoost_InScope(Collection<Float> boostList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setBoost_Terms(boostList, opLambda);
}
public void setBoost_Match(Float boost) {
setBoost_Match(boost, null);
}
public void setBoost_Match(Float boost, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("boost", boost);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_MatchPhrase(Float boost) {
setBoost_MatchPhrase(boost, null);
}
public void setBoost_MatchPhrase(Float boost, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("boost", boost);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_MatchPhrasePrefix(Float boost) {
setBoost_MatchPhrasePrefix(boost, null);
}
public void setBoost_MatchPhrasePrefix(Float boost, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("boost", boost);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_Fuzzy(Float boost) {
setBoost_Fuzzy(boost, null);
}
public void setBoost_Fuzzy(Float boost, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("boost", boost);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_GreaterThan(Float boost) {
setBoost_GreaterThan(boost, null);
}
public void setBoost_GreaterThan(Float boost, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boost;
RangeQueryBuilder builder = regRangeQ("boost", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_LessThan(Float boost) {
setBoost_LessThan(boost, null);
}
public void setBoost_LessThan(Float boost, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boost;
RangeQueryBuilder builder = regRangeQ("boost", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_GreaterEqual(Float boost) {
setBoost_GreaterEqual(boost, null);
}
public void setBoost_GreaterEqual(Float boost, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boost;
RangeQueryBuilder builder = regRangeQ("boost", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_LessEqual(Float boost) {
setBoost_LessEqual(boost, null);
}
public void setBoost_LessEqual(Float boost, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boost;
RangeQueryBuilder builder = regRangeQ("boost", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoost_Exists() {
setBoost_Exists(null);
}
public void setBoost_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("boost");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setBoost_CommonTerms(Float boost) {
setBoost_CommonTerms(boost, null);
}
@Deprecated
public void setBoost_CommonTerms(Float boost, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("boost", boost);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsKeyMatchCQ addOrderBy_Boost_Asc() {
regOBA("boost");
return this;
}
public BsKeyMatchCQ addOrderBy_Boost_Desc() {
regOBD("boost");
return this;
}
public void setCreatedBy_Equal(String createdBy) {
setCreatedBy_Term(createdBy, null);
}
public void setCreatedBy_Equal(String createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
setCreatedBy_Term(createdBy, opLambda);
}
public void setCreatedBy_Term(String createdBy) {
setCreatedBy_Term(createdBy, null);
}
public void setCreatedBy_Term(String createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_NotEqual(String createdBy) {
setCreatedBy_NotTerm(createdBy, null);
}
public void setCreatedBy_NotTerm(String createdBy) {
setCreatedBy_NotTerm(createdBy, null);
}
public void setCreatedBy_NotEqual(String createdBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setCreatedBy_NotTerm(createdBy, opLambda);
}
public void setCreatedBy_NotTerm(String createdBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setCreatedBy_Term(createdBy), opLambda);
}
public void setCreatedBy_Terms(Collection<String> createdByList) {
setCreatedBy_Terms(createdByList, null);
}
public void setCreatedBy_Terms(Collection<String> createdByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("createdBy", createdByList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_InScope(Collection<String> createdByList) {
setCreatedBy_Terms(createdByList, null);
}
public void setCreatedBy_InScope(Collection<String> createdByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setCreatedBy_Terms(createdByList, opLambda);
}
public void setCreatedBy_Match(String createdBy) {
setCreatedBy_Match(createdBy, null);
}
public void setCreatedBy_Match(String createdBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_MatchPhrase(String createdBy) {
setCreatedBy_MatchPhrase(createdBy, null);
}
public void setCreatedBy_MatchPhrase(String createdBy, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_MatchPhrasePrefix(String createdBy) {
setCreatedBy_MatchPhrasePrefix(createdBy, null);
}
public void setCreatedBy_MatchPhrasePrefix(String createdBy, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Fuzzy(String createdBy) {
setCreatedBy_Fuzzy(createdBy, null);
}
public void setCreatedBy_Fuzzy(String createdBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Prefix(String createdBy) {
setCreatedBy_Prefix(createdBy, null);
}
public void setCreatedBy_Prefix(String createdBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
PrefixQueryBuilder builder = regPrefixQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Wildcard(String createdBy) {
setCreatedBy_Wildcard(createdBy, null);
}
public void setCreatedBy_Wildcard(String createdBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
WildcardQueryBuilder builder = regWildcardQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Regexp(String createdBy) {
setCreatedBy_Regexp(createdBy, null);
}
public void setCreatedBy_Regexp(String createdBy, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
RegexpQueryBuilder builder = regRegexpQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_SpanTerm(String createdBy) {
setCreatedBy_SpanTerm("createdBy", null);
}
public void setCreatedBy_SpanTerm(String createdBy, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
SpanTermQueryBuilder builder = regSpanTermQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_GreaterThan(String createdBy) {
setCreatedBy_GreaterThan(createdBy, null);
}
public void setCreatedBy_GreaterThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_LessThan(String createdBy) {
setCreatedBy_LessThan(createdBy, null);
}
public void setCreatedBy_LessThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_GreaterEqual(String createdBy) {
setCreatedBy_GreaterEqual(createdBy, null);
}
public void setCreatedBy_GreaterEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_LessEqual(String createdBy) {
setCreatedBy_LessEqual(createdBy, null);
}
public void setCreatedBy_LessEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Exists() {
setCreatedBy_Exists(null);
}
public void setCreatedBy_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("createdBy");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setCreatedBy_CommonTerms(String createdBy) {
setCreatedBy_CommonTerms(createdBy, null);
}
@Deprecated
public void setCreatedBy_CommonTerms(String createdBy, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsKeyMatchCQ addOrderBy_CreatedBy_Asc() {
regOBA("createdBy");
return this;
}
public BsKeyMatchCQ addOrderBy_CreatedBy_Desc() {
regOBD("createdBy");
return this;
}
public void setCreatedTime_Equal(Long createdTime) {
setCreatedTime_Term(createdTime, null);
}
public void setCreatedTime_Equal(Long createdTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
setCreatedTime_Term(createdTime, opLambda);
}
public void setCreatedTime_Term(Long createdTime) {
setCreatedTime_Term(createdTime, null);
}
public void setCreatedTime_Term(Long createdTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_NotEqual(Long createdTime) {
setCreatedTime_NotTerm(createdTime, null);
}
public void setCreatedTime_NotTerm(Long createdTime) {
setCreatedTime_NotTerm(createdTime, null);
}
public void setCreatedTime_NotEqual(Long createdTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setCreatedTime_NotTerm(createdTime, opLambda);
}
public void setCreatedTime_NotTerm(Long createdTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setCreatedTime_Term(createdTime), opLambda);
}
public void setCreatedTime_Terms(Collection<Long> createdTimeList) {
setCreatedTime_Terms(createdTimeList, null);
}
public void setCreatedTime_Terms(Collection<Long> createdTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("createdTime", createdTimeList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_InScope(Collection<Long> createdTimeList) {
setCreatedTime_Terms(createdTimeList, null);
}
public void setCreatedTime_InScope(Collection<Long> createdTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setCreatedTime_Terms(createdTimeList, opLambda);
}
public void setCreatedTime_Match(Long createdTime) {
setCreatedTime_Match(createdTime, null);
}
public void setCreatedTime_Match(Long createdTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_MatchPhrase(Long createdTime) {
setCreatedTime_MatchPhrase(createdTime, null);
}
public void setCreatedTime_MatchPhrase(Long createdTime, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_MatchPhrasePrefix(Long createdTime) {
setCreatedTime_MatchPhrasePrefix(createdTime, null);
}
public void setCreatedTime_MatchPhrasePrefix(Long createdTime, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_Fuzzy(Long createdTime) {
setCreatedTime_Fuzzy(createdTime, null);
}
public void setCreatedTime_Fuzzy(Long createdTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_GreaterThan(Long createdTime) {
setCreatedTime_GreaterThan(createdTime, null);
}
public void setCreatedTime_GreaterThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_LessThan(Long createdTime) {
setCreatedTime_LessThan(createdTime, null);
}
public void setCreatedTime_LessThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_GreaterEqual(Long createdTime) {
setCreatedTime_GreaterEqual(createdTime, null);
}
public void setCreatedTime_GreaterEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_LessEqual(Long createdTime) {
setCreatedTime_LessEqual(createdTime, null);
}
public void setCreatedTime_LessEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_Exists() {
setCreatedTime_Exists(null);
}
public void setCreatedTime_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setCreatedTime_CommonTerms(Long createdTime) {
setCreatedTime_CommonTerms(createdTime, null);
}
@Deprecated
public void setCreatedTime_CommonTerms(Long createdTime, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsKeyMatchCQ addOrderBy_CreatedTime_Asc() {
regOBA("createdTime");
return this;
}
public BsKeyMatchCQ addOrderBy_CreatedTime_Desc() {
regOBD("createdTime");
return this;
}
public void setMaxSize_Equal(Integer maxSize) {
setMaxSize_Term(maxSize, null);
}
public void setMaxSize_Equal(Integer maxSize, ConditionOptionCall<TermQueryBuilder> opLambda) {
setMaxSize_Term(maxSize, opLambda);
}
public void setMaxSize_Term(Integer maxSize) {
setMaxSize_Term(maxSize, null);
}
public void setMaxSize_Term(Integer maxSize, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("maxSize", maxSize);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_NotEqual(Integer maxSize) {
setMaxSize_NotTerm(maxSize, null);
}
public void setMaxSize_NotTerm(Integer maxSize) {
setMaxSize_NotTerm(maxSize, null);
}
public void setMaxSize_NotEqual(Integer maxSize, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setMaxSize_NotTerm(maxSize, opLambda);
}
public void setMaxSize_NotTerm(Integer maxSize, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setMaxSize_Term(maxSize), opLambda);
}
public void setMaxSize_Terms(Collection<Integer> maxSizeList) {
setMaxSize_Terms(maxSizeList, null);
}
public void setMaxSize_Terms(Collection<Integer> maxSizeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("maxSize", maxSizeList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_InScope(Collection<Integer> maxSizeList) {
setMaxSize_Terms(maxSizeList, null);
}
public void setMaxSize_InScope(Collection<Integer> maxSizeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setMaxSize_Terms(maxSizeList, opLambda);
}
public void setMaxSize_Match(Integer maxSize) {
setMaxSize_Match(maxSize, null);
}
public void setMaxSize_Match(Integer maxSize, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("maxSize", maxSize);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_MatchPhrase(Integer maxSize) {
setMaxSize_MatchPhrase(maxSize, null);
}
public void setMaxSize_MatchPhrase(Integer maxSize, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("maxSize", maxSize);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_MatchPhrasePrefix(Integer maxSize) {
setMaxSize_MatchPhrasePrefix(maxSize, null);
}
public void setMaxSize_MatchPhrasePrefix(Integer maxSize, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("maxSize", maxSize);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_Fuzzy(Integer maxSize) {
setMaxSize_Fuzzy(maxSize, null);
}
public void setMaxSize_Fuzzy(Integer maxSize, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("maxSize", maxSize);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_GreaterThan(Integer maxSize) {
setMaxSize_GreaterThan(maxSize, null);
}
public void setMaxSize_GreaterThan(Integer maxSize, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = maxSize;
RangeQueryBuilder builder = regRangeQ("maxSize", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_LessThan(Integer maxSize) {
setMaxSize_LessThan(maxSize, null);
}
public void setMaxSize_LessThan(Integer maxSize, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = maxSize;
RangeQueryBuilder builder = regRangeQ("maxSize", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_GreaterEqual(Integer maxSize) {
setMaxSize_GreaterEqual(maxSize, null);
}
public void setMaxSize_GreaterEqual(Integer maxSize, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = maxSize;
RangeQueryBuilder builder = regRangeQ("maxSize", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_LessEqual(Integer maxSize) {
setMaxSize_LessEqual(maxSize, null);
}
public void setMaxSize_LessEqual(Integer maxSize, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = maxSize;
RangeQueryBuilder builder = regRangeQ("maxSize", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setMaxSize_Exists() {
setMaxSize_Exists(null);
}
public void setMaxSize_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("maxSize");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setMaxSize_CommonTerms(Integer maxSize) {
setMaxSize_CommonTerms(maxSize, null);
}
@Deprecated
public void setMaxSize_CommonTerms(Integer maxSize, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("maxSize", maxSize);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsKeyMatchCQ addOrderBy_MaxSize_Asc() {
regOBA("maxSize");
return this;
}
public BsKeyMatchCQ addOrderBy_MaxSize_Desc() {
regOBD("maxSize");
return this;
}
public void setQuery_Equal(String query) {
setQuery_Term(query, null);
}
public void setQuery_Equal(String query, ConditionOptionCall<TermQueryBuilder> opLambda) {
setQuery_Term(query, opLambda);
}
public void setQuery_Term(String query) {
setQuery_Term(query, null);
}
public void setQuery_Term(String query, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("query", query);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setQuery_NotEqual(String query) {
setQuery_NotTerm(query, null);
}
public void setQuery_NotTerm(String query) {
setQuery_NotTerm(query, null);
}
public void setQuery_NotEqual(String query, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setQuery_NotTerm(query, opLambda);
}
public void setQuery_NotTerm(String query, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setQuery_Term(query), opLambda);
}
public void setQuery_Terms(Collection<String> queryList) {
setQuery_Terms(queryList, null);
}
public void setQuery_Terms(Collection<String> queryList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("query", queryList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setQuery_InScope(Collection<String> queryList) {
setQuery_Terms(queryList, null);