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