3030import co .elastic .clients .util .ObjectBuilder ;
3131import co .elastic .clients .util .WithJsonObjectBuilderBase ;
3232import jakarta .json .stream .JsonGenerator ;
33- import java .lang .Integer ;
3433import java .lang .Long ;
3534import java .lang .String ;
3635import java .util .Objects ;
6160 */
6261@ JsonpDeserializable
6362public class QueryCacheStats implements JsonpSerializable {
64- private final int cacheCount ;
63+ private final long cacheCount ;
6564
66- private final int cacheSize ;
65+ private final long cacheSize ;
6766
68- private final int evictions ;
67+ private final long evictions ;
6968
70- private final int hitCount ;
69+ private final long hitCount ;
7170
7271 @ Nullable
7372 private final String memorySize ;
7473
7574 private final long memorySizeInBytes ;
7675
77- private final int missCount ;
76+ private final long missCount ;
7877
79- private final int totalCount ;
78+ private final long totalCount ;
8079
8180 // ---------------------------------------------------------------------------------------------
8281
@@ -103,7 +102,7 @@ public static QueryCacheStats of(Function<Builder, ObjectBuilder<QueryCacheStats
103102 * <p>
104103 * API name: {@code cache_count}
105104 */
106- public final int cacheCount () {
105+ public final long cacheCount () {
107106 return this .cacheCount ;
108107 }
109108
@@ -113,7 +112,7 @@ public final int cacheCount() {
113112 * <p>
114113 * API name: {@code cache_size}
115114 */
116- public final int cacheSize () {
115+ public final long cacheSize () {
117116 return this .cacheSize ;
118117 }
119118
@@ -123,7 +122,7 @@ public final int cacheSize() {
123122 * <p>
124123 * API name: {@code evictions}
125124 */
126- public final int evictions () {
125+ public final long evictions () {
127126 return this .evictions ;
128127 }
129128
@@ -133,7 +132,7 @@ public final int evictions() {
133132 * <p>
134133 * API name: {@code hit_count}
135134 */
136- public final int hitCount () {
135+ public final long hitCount () {
137136 return this .hitCount ;
138137 }
139138
@@ -164,7 +163,7 @@ public final long memorySizeInBytes() {
164163 * <p>
165164 * API name: {@code miss_count}
166165 */
167- public final int missCount () {
166+ public final long missCount () {
168167 return this .missCount ;
169168 }
170169
@@ -174,7 +173,7 @@ public final int missCount() {
174173 * <p>
175174 * API name: {@code total_count}
176175 */
177- public final int totalCount () {
176+ public final long totalCount () {
178177 return this .totalCount ;
179178 }
180179
@@ -229,30 +228,30 @@ public String toString() {
229228 */
230229
231230 public static class Builder extends WithJsonObjectBuilderBase <Builder > implements ObjectBuilder <QueryCacheStats > {
232- private Integer cacheCount ;
231+ private Long cacheCount ;
233232
234- private Integer cacheSize ;
233+ private Long cacheSize ;
235234
236- private Integer evictions ;
235+ private Long evictions ;
237236
238- private Integer hitCount ;
237+ private Long hitCount ;
239238
240239 @ Nullable
241240 private String memorySize ;
242241
243242 private Long memorySizeInBytes ;
244243
245- private Integer missCount ;
244+ private Long missCount ;
246245
247- private Integer totalCount ;
246+ private Long totalCount ;
248247
249248 /**
250249 * Required - Total number of entries added to the query cache across all shards
251250 * assigned to selected nodes. This number includes current and evicted entries.
252251 * <p>
253252 * API name: {@code cache_count}
254253 */
255- public final Builder cacheCount (int value ) {
254+ public final Builder cacheCount (long value ) {
256255 this .cacheCount = value ;
257256 return this ;
258257 }
@@ -263,7 +262,7 @@ public final Builder cacheCount(int value) {
263262 * <p>
264263 * API name: {@code cache_size}
265264 */
266- public final Builder cacheSize (int value ) {
265+ public final Builder cacheSize (long value ) {
267266 this .cacheSize = value ;
268267 return this ;
269268 }
@@ -274,7 +273,7 @@ public final Builder cacheSize(int value) {
274273 * <p>
275274 * API name: {@code evictions}
276275 */
277- public final Builder evictions (int value ) {
276+ public final Builder evictions (long value ) {
278277 this .evictions = value ;
279278 return this ;
280279 }
@@ -285,7 +284,7 @@ public final Builder evictions(int value) {
285284 * <p>
286285 * API name: {@code hit_count}
287286 */
288- public final Builder hitCount (int value ) {
287+ public final Builder hitCount (long value ) {
289288 this .hitCount = value ;
290289 return this ;
291290 }
@@ -318,7 +317,7 @@ public final Builder memorySizeInBytes(long value) {
318317 * <p>
319318 * API name: {@code miss_count}
320319 */
321- public final Builder missCount (int value ) {
320+ public final Builder missCount (long value ) {
322321 this .missCount = value ;
323322 return this ;
324323 }
@@ -329,7 +328,7 @@ public final Builder missCount(int value) {
329328 * <p>
330329 * API name: {@code total_count}
331330 */
332- public final Builder totalCount (int value ) {
331+ public final Builder totalCount (long value ) {
333332 this .totalCount = value ;
334333 return this ;
335334 }
@@ -362,14 +361,14 @@ public QueryCacheStats build() {
362361
363362 protected static void setupQueryCacheStatsDeserializer (ObjectDeserializer <QueryCacheStats .Builder > op ) {
364363
365- op .add (Builder ::cacheCount , JsonpDeserializer .integerDeserializer (), "cache_count" );
366- op .add (Builder ::cacheSize , JsonpDeserializer .integerDeserializer (), "cache_size" );
367- op .add (Builder ::evictions , JsonpDeserializer .integerDeserializer (), "evictions" );
368- op .add (Builder ::hitCount , JsonpDeserializer .integerDeserializer (), "hit_count" );
364+ op .add (Builder ::cacheCount , JsonpDeserializer .longDeserializer (), "cache_count" );
365+ op .add (Builder ::cacheSize , JsonpDeserializer .longDeserializer (), "cache_size" );
366+ op .add (Builder ::evictions , JsonpDeserializer .longDeserializer (), "evictions" );
367+ op .add (Builder ::hitCount , JsonpDeserializer .longDeserializer (), "hit_count" );
369368 op .add (Builder ::memorySize , JsonpDeserializer .stringDeserializer (), "memory_size" );
370369 op .add (Builder ::memorySizeInBytes , JsonpDeserializer .longDeserializer (), "memory_size_in_bytes" );
371- op .add (Builder ::missCount , JsonpDeserializer .integerDeserializer (), "miss_count" );
372- op .add (Builder ::totalCount , JsonpDeserializer .integerDeserializer (), "total_count" );
370+ op .add (Builder ::missCount , JsonpDeserializer .longDeserializer (), "miss_count" );
371+ op .add (Builder ::totalCount , JsonpDeserializer .longDeserializer (), "total_count" );
373372
374373 }
375374
0 commit comments