This is a cache of https://fess.codelibs.org/xref/org/codelibs/fess/es/config/cbean/ca/bs/BsElevateWordToLabelCA.html. It is a snapshot of the page at 2020-10-25T01:19:41.933+0000.
BsElevateWordToLabelCA xref
View Javadoc
1   /*
2    * Copyright 2012-2020 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.ca.bs;
17  
18  import org.codelibs.fess.es.config.allcommon.EsAbstractConditionAggregation;
19  import org.codelibs.fess.es.config.allcommon.EsAbstractConditionQuery;
20  import org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA;
21  import org.codelibs.fess.es.config.cbean.cq.ElevateWordToLabelCQ;
22  import org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordToLabelCQ;
23  import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
24  import org.elasticsearch.search.aggregations.bucket.global.globalAggregationBuilder;
25  import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
26  import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
27  import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
28  import org.elasticsearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
29  import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
30  import org.elasticsearch.search.aggregations.metrics.CardinalityAggregationBuilder;
31  import org.elasticsearch.search.aggregations.metrics.ScriptedMetricAggregationBuilder;
32  import org.elasticsearch.search.aggregations.metrics.TopHitsAggregationBuilder;
33  import org.elasticsearch.search.aggregations.metrics.ValueCountAggregationBuilder;
34  
35  /**
36   * @author ESFlute (using Freegen)
37   */
38  public abstract class BsElevateWordToLabelCA extends EsAbstractConditionAggregation {
39  
40      // ===================================================================================
41      //                                                                     Aggregation Set
42      //                                                                           =========
43  
44      public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsElevateWordToLabelCQ&gt; queryLambda,
45              ConditionOptionCall<FilterAggregationBuilder&gt; opLambda, OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
46          ElevateWordToLabelCQg/cbean/cq/ElevateWordToLabelCQ.html#ElevateWordToLabelCQ">ElevateWordToLabelCQ cq = new ElevateWordToLabelCQ();
47          if (queryLambda != null) {
48              queryLambda.callback(cq);
49          }
50          FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
51          if (opLambda != null) {
52              opLambda.callback(builder);
53          }
54          if (aggsLambda != null) {
55              ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
56              aggsLambda.callback(ca);
57              ca.getAggregationBuilderList().forEach(builder::subAggregation);
58          }
59      }
60  
61      public void global(String name, ConditionOptionCall<globalAggregationBuilder&gt; opLambda, OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
62          globalAggregationBuilder builder = regglobalA(name);
63          if (opLambda != null) {
64              opLambda.callback(builder);
65          }
66          if (aggsLambda != null) {
67              ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
68              aggsLambda.callback(ca);
69              ca.getAggregationBuilderList().forEach(builder::subAggregation);
70          }
71      }
72  
73      public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder&gt; opLambda,
74              OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
75          SamplerAggregationBuilder builder = regSamplerA(name);
76          if (opLambda != null) {
77              opLambda.callback(builder);
78          }
79          if (aggsLambda != null) {
80              ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
81              aggsLambda.callback(ca);
82              ca.getAggregationBuilderList().forEach(builder::subAggregation);
83          }
84      }
85  
86      public void scriptedMetric(String name, ConditionOptionCall<ScriptedMetricAggregationBuilder&gt; opLambda) {
87          ScriptedMetricAggregationBuilder builder = regScriptedMetricA(name);
88          if (opLambda != null) {
89              opLambda.callback(builder);
90          }
91      }
92  
93      public void topHits(String name, ConditionOptionCall<TopHitsAggregationBuilder&gt; opLambda) {
94          TopHitsAggregationBuilder builder = regTopHitsA(name);
95          if (opLambda != null) {
96              opLambda.callback(builder);
97          }
98      }
99  
100     public void setElevateWordId_Terms() {
101         setElevateWordId_Terms(null);
102     }
103 
104     public void setElevateWordId_Terms(ConditionOptionCall<TermsAggregationBuilder&gt; opLambda) {
105         setElevateWordId_Terms("elevateWordId", opLambda, null);
106     }
107 
108     public void setElevateWordId_Terms(ConditionOptionCall<TermsAggregationBuilder&gt; opLambda,
109             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
110         setElevateWordId_Terms("elevateWordId", opLambda, aggsLambda);
111     }
112 
113     public void setElevateWordId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder&gt; opLambda,
114             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
115         TermsAggregationBuilder builder = regTermsA(name, "elevateWordId");
116         if (opLambda != null) {
117             opLambda.callback(builder);
118         }
119         if (aggsLambda != null) {
120             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
121             aggsLambda.callback(ca);
122             ca.getAggregationBuilderList().forEach(builder::subAggregation);
123         }
124     }
125 
126     public void setElevateWordId_SignificantTerms() {
127         setElevateWordId_SignificantTerms(null);
128     }
129 
130     public void setElevateWordId_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder&gt; opLambda) {
131         setElevateWordId_SignificantTerms("elevateWordId", opLambda, null);
132     }
133 
134     public void setElevateWordId_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder&gt; opLambda,
135             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
136         setElevateWordId_SignificantTerms("elevateWordId", opLambda, aggsLambda);
137     }
138 
139     public void setElevateWordId_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder&gt; opLambda,
140             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
141         SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "elevateWordId");
142         if (opLambda != null) {
143             opLambda.callback(builder);
144         }
145         if (aggsLambda != null) {
146             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
147             aggsLambda.callback(ca);
148             ca.getAggregationBuilderList().forEach(builder::subAggregation);
149         }
150     }
151 
152     public void setElevateWordId_IpRange() {
153         setElevateWordId_IpRange(null);
154     }
155 
156     public void setElevateWordId_IpRange(ConditionOptionCall<IpRangeAggregationBuilder&gt; opLambda) {
157         setElevateWordId_IpRange("elevateWordId", opLambda, null);
158     }
159 
160     public void setElevateWordId_IpRange(ConditionOptionCall<IpRangeAggregationBuilder&gt; opLambda,
161             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
162         setElevateWordId_IpRange("elevateWordId", opLambda, aggsLambda);
163     }
164 
165     public void setElevateWordId_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder&gt; opLambda,
166             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
167         IpRangeAggregationBuilder builder = regIpRangeA(name, "elevateWordId");
168         if (opLambda != null) {
169             opLambda.callback(builder);
170         }
171         if (aggsLambda != null) {
172             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
173             aggsLambda.callback(ca);
174             ca.getAggregationBuilderList().forEach(builder::subAggregation);
175         }
176     }
177 
178     public void setElevateWordId_Count() {
179         setElevateWordId_Count(null);
180     }
181 
182     public void setElevateWordId_Count(ConditionOptionCall<ValueCountAggregationBuilder&gt; opLambda) {
183         setElevateWordId_Count("elevateWordId", opLambda);
184     }
185 
186     public void setElevateWordId_Count(String name, ConditionOptionCall<ValueCountAggregationBuilder&gt; opLambda) {
187         ValueCountAggregationBuilder builder = regCountA(name, "elevateWordId");
188         if (opLambda != null) {
189             opLambda.callback(builder);
190         }
191     }
192 
193     public void setElevateWordId_Cardinality() {
194         setElevateWordId_Cardinality(null);
195     }
196 
197     public void setElevateWordId_Cardinality(ConditionOptionCall<CardinalityAggregationBuilder&gt; opLambda) {
198         setElevateWordId_Cardinality("elevateWordId", opLambda);
199     }
200 
201     public void setElevateWordId_Cardinality(String name, ConditionOptionCall<CardinalityAggregationBuilder&gt; opLambda) {
202         CardinalityAggregationBuilder builder = regCardinalityA(name, "elevateWordId");
203         if (opLambda != null) {
204             opLambda.callback(builder);
205         }
206     }
207 
208     public void setElevateWordId_Missing() {
209         setElevateWordId_Missing(null);
210     }
211 
212     public void setElevateWordId_Missing(ConditionOptionCall<MissingAggregationBuilder&gt; opLambda) {
213         setElevateWordId_Missing("elevateWordId", opLambda, null);
214     }
215 
216     public void setElevateWordId_Missing(ConditionOptionCall<MissingAggregationBuilder&gt; opLambda,
217             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
218         setElevateWordId_Missing("elevateWordId", opLambda, aggsLambda);
219     }
220 
221     public void setElevateWordId_Missing(String name, ConditionOptionCall<MissingAggregationBuilder&gt; opLambda,
222             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
223         MissingAggregationBuilder builder = regMissingA(name, "elevateWordId");
224         if (opLambda != null) {
225             opLambda.callback(builder);
226         }
227         if (aggsLambda != null) {
228             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
229             aggsLambda.callback(ca);
230             ca.getAggregationBuilderList().forEach(builder::subAggregation);
231         }
232     }
233 
234     public void setLabelTypeId_Terms() {
235         setLabelTypeId_Terms(null);
236     }
237 
238     public void setLabelTypeId_Terms(ConditionOptionCall<TermsAggregationBuilder&gt; opLambda) {
239         setLabelTypeId_Terms("labelTypeId", opLambda, null);
240     }
241 
242     public void setLabelTypeId_Terms(ConditionOptionCall<TermsAggregationBuilder&gt; opLambda, OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
243         setLabelTypeId_Terms("labelTypeId", opLambda, aggsLambda);
244     }
245 
246     public void setLabelTypeId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder&gt; opLambda,
247             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
248         TermsAggregationBuilder builder = regTermsA(name, "labelTypeId");
249         if (opLambda != null) {
250             opLambda.callback(builder);
251         }
252         if (aggsLambda != null) {
253             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
254             aggsLambda.callback(ca);
255             ca.getAggregationBuilderList().forEach(builder::subAggregation);
256         }
257     }
258 
259     public void setLabelTypeId_SignificantTerms() {
260         setLabelTypeId_SignificantTerms(null);
261     }
262 
263     public void setLabelTypeId_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder&gt; opLambda) {
264         setLabelTypeId_SignificantTerms("labelTypeId", opLambda, null);
265     }
266 
267     public void setLabelTypeId_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder&gt; opLambda,
268             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
269         setLabelTypeId_SignificantTerms("labelTypeId", opLambda, aggsLambda);
270     }
271 
272     public void setLabelTypeId_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder&gt; opLambda,
273             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
274         SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "labelTypeId");
275         if (opLambda != null) {
276             opLambda.callback(builder);
277         }
278         if (aggsLambda != null) {
279             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
280             aggsLambda.callback(ca);
281             ca.getAggregationBuilderList().forEach(builder::subAggregation);
282         }
283     }
284 
285     public void setLabelTypeId_IpRange() {
286         setLabelTypeId_IpRange(null);
287     }
288 
289     public void setLabelTypeId_IpRange(ConditionOptionCall<IpRangeAggregationBuilder&gt; opLambda) {
290         setLabelTypeId_IpRange("labelTypeId", opLambda, null);
291     }
292 
293     public void setLabelTypeId_IpRange(ConditionOptionCall<IpRangeAggregationBuilder&gt; opLambda,
294             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
295         setLabelTypeId_IpRange("labelTypeId", opLambda, aggsLambda);
296     }
297 
298     public void setLabelTypeId_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder&gt; opLambda,
299             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
300         IpRangeAggregationBuilder builder = regIpRangeA(name, "labelTypeId");
301         if (opLambda != null) {
302             opLambda.callback(builder);
303         }
304         if (aggsLambda != null) {
305             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
306             aggsLambda.callback(ca);
307             ca.getAggregationBuilderList().forEach(builder::subAggregation);
308         }
309     }
310 
311     public void setLabelTypeId_Count() {
312         setLabelTypeId_Count(null);
313     }
314 
315     public void setLabelTypeId_Count(ConditionOptionCall<ValueCountAggregationBuilder&gt; opLambda) {
316         setLabelTypeId_Count("labelTypeId", opLambda);
317     }
318 
319     public void setLabelTypeId_Count(String name, ConditionOptionCall<ValueCountAggregationBuilder&gt; opLambda) {
320         ValueCountAggregationBuilder builder = regCountA(name, "labelTypeId");
321         if (opLambda != null) {
322             opLambda.callback(builder);
323         }
324     }
325 
326     public void setLabelTypeId_Cardinality() {
327         setLabelTypeId_Cardinality(null);
328     }
329 
330     public void setLabelTypeId_Cardinality(ConditionOptionCall<CardinalityAggregationBuilder&gt; opLambda) {
331         setLabelTypeId_Cardinality("labelTypeId", opLambda);
332     }
333 
334     public void setLabelTypeId_Cardinality(String name, ConditionOptionCall<CardinalityAggregationBuilder&gt; opLambda) {
335         CardinalityAggregationBuilder builder = regCardinalityA(name, "labelTypeId");
336         if (opLambda != null) {
337             opLambda.callback(builder);
338         }
339     }
340 
341     public void setLabelTypeId_Missing() {
342         setLabelTypeId_Missing(null);
343     }
344 
345     public void setLabelTypeId_Missing(ConditionOptionCall<MissingAggregationBuilder&gt; opLambda) {
346         setLabelTypeId_Missing("labelTypeId", opLambda, null);
347     }
348 
349     public void setLabelTypeId_Missing(ConditionOptionCall<MissingAggregationBuilder&gt; opLambda,
350             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
351         setLabelTypeId_Missing("labelTypeId", opLambda, aggsLambda);
352     }
353 
354     public void setLabelTypeId_Missing(String name, ConditionOptionCall<MissingAggregationBuilder&gt; opLambda,
355             OperatorCall<BsElevateWordToLabelCA&gt; aggsLambda) {
356         MissingAggregationBuilder builder = regMissingA(name, "labelTypeId");
357         if (opLambda != null) {
358             opLambda.callback(builder);
359         }
360         if (aggsLambda != null) {
361             ElevateWordToLabelCAg/cbean/ca/ElevateWordToLabelCA.html#ElevateWordToLabelCA">ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
362             aggsLambda.callback(ca);
363             ca.getAggregationBuilderList().forEach(builder::subAggregation);
364         }
365     }
366 
367 }