30
30
import co .elastic .clients .util .ObjectBuilder ;
31
31
import co .elastic .clients .util .WithJsonObjectBuilderBase ;
32
32
import jakarta .json .stream .JsonGenerator ;
33
- import java .lang .Integer ;
34
33
import java .lang .Long ;
35
34
import java .lang .String ;
36
35
import java .util .Objects ;
61
60
*/
62
61
@ JsonpDeserializable
63
62
public class QueryCacheStats implements JsonpSerializable {
64
- private final int cacheCount ;
63
+ private final long cacheCount ;
65
64
66
- private final int cacheSize ;
65
+ private final long cacheSize ;
67
66
68
- private final int evictions ;
67
+ private final long evictions ;
69
68
70
- private final int hitCount ;
69
+ private final long hitCount ;
71
70
72
71
@ Nullable
73
72
private final String memorySize ;
74
73
75
74
private final long memorySizeInBytes ;
76
75
77
- private final int missCount ;
76
+ private final long missCount ;
78
77
79
- private final int totalCount ;
78
+ private final long totalCount ;
80
79
81
80
// ---------------------------------------------------------------------------------------------
82
81
@@ -103,7 +102,7 @@ public static QueryCacheStats of(Function<Builder, ObjectBuilder<QueryCacheStats
103
102
* <p>
104
103
* API name: {@code cache_count}
105
104
*/
106
- public final int cacheCount () {
105
+ public final long cacheCount () {
107
106
return this .cacheCount ;
108
107
}
109
108
@@ -113,7 +112,7 @@ public final int cacheCount() {
113
112
* <p>
114
113
* API name: {@code cache_size}
115
114
*/
116
- public final int cacheSize () {
115
+ public final long cacheSize () {
117
116
return this .cacheSize ;
118
117
}
119
118
@@ -123,7 +122,7 @@ public final int cacheSize() {
123
122
* <p>
124
123
* API name: {@code evictions}
125
124
*/
126
- public final int evictions () {
125
+ public final long evictions () {
127
126
return this .evictions ;
128
127
}
129
128
@@ -133,7 +132,7 @@ public final int evictions() {
133
132
* <p>
134
133
* API name: {@code hit_count}
135
134
*/
136
- public final int hitCount () {
135
+ public final long hitCount () {
137
136
return this .hitCount ;
138
137
}
139
138
@@ -164,7 +163,7 @@ public final long memorySizeInBytes() {
164
163
* <p>
165
164
* API name: {@code miss_count}
166
165
*/
167
- public final int missCount () {
166
+ public final long missCount () {
168
167
return this .missCount ;
169
168
}
170
169
@@ -174,7 +173,7 @@ public final int missCount() {
174
173
* <p>
175
174
* API name: {@code total_count}
176
175
*/
177
- public final int totalCount () {
176
+ public final long totalCount () {
178
177
return this .totalCount ;
179
178
}
180
179
@@ -229,30 +228,30 @@ public String toString() {
229
228
*/
230
229
231
230
public static class Builder extends WithJsonObjectBuilderBase <Builder > implements ObjectBuilder <QueryCacheStats > {
232
- private Integer cacheCount ;
231
+ private Long cacheCount ;
233
232
234
- private Integer cacheSize ;
233
+ private Long cacheSize ;
235
234
236
- private Integer evictions ;
235
+ private Long evictions ;
237
236
238
- private Integer hitCount ;
237
+ private Long hitCount ;
239
238
240
239
@ Nullable
241
240
private String memorySize ;
242
241
243
242
private Long memorySizeInBytes ;
244
243
245
- private Integer missCount ;
244
+ private Long missCount ;
246
245
247
- private Integer totalCount ;
246
+ private Long totalCount ;
248
247
249
248
/**
250
249
* Required - Total number of entries added to the query cache across all shards
251
250
* assigned to selected nodes. This number includes current and evicted entries.
252
251
* <p>
253
252
* API name: {@code cache_count}
254
253
*/
255
- public final Builder cacheCount (int value ) {
254
+ public final Builder cacheCount (long value ) {
256
255
this .cacheCount = value ;
257
256
return this ;
258
257
}
@@ -263,7 +262,7 @@ public final Builder cacheCount(int value) {
263
262
* <p>
264
263
* API name: {@code cache_size}
265
264
*/
266
- public final Builder cacheSize (int value ) {
265
+ public final Builder cacheSize (long value ) {
267
266
this .cacheSize = value ;
268
267
return this ;
269
268
}
@@ -274,7 +273,7 @@ public final Builder cacheSize(int value) {
274
273
* <p>
275
274
* API name: {@code evictions}
276
275
*/
277
- public final Builder evictions (int value ) {
276
+ public final Builder evictions (long value ) {
278
277
this .evictions = value ;
279
278
return this ;
280
279
}
@@ -285,7 +284,7 @@ public final Builder evictions(int value) {
285
284
* <p>
286
285
* API name: {@code hit_count}
287
286
*/
288
- public final Builder hitCount (int value ) {
287
+ public final Builder hitCount (long value ) {
289
288
this .hitCount = value ;
290
289
return this ;
291
290
}
@@ -318,7 +317,7 @@ public final Builder memorySizeInBytes(long value) {
318
317
* <p>
319
318
* API name: {@code miss_count}
320
319
*/
321
- public final Builder missCount (int value ) {
320
+ public final Builder missCount (long value ) {
322
321
this .missCount = value ;
323
322
return this ;
324
323
}
@@ -329,7 +328,7 @@ public final Builder missCount(int value) {
329
328
* <p>
330
329
* API name: {@code total_count}
331
330
*/
332
- public final Builder totalCount (int value ) {
331
+ public final Builder totalCount (long value ) {
333
332
this .totalCount = value ;
334
333
return this ;
335
334
}
@@ -362,14 +361,14 @@ public QueryCacheStats build() {
362
361
363
362
protected static void setupQueryCacheStatsDeserializer (ObjectDeserializer <QueryCacheStats .Builder > op ) {
364
363
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" );
369
368
op .add (Builder ::memorySize , JsonpDeserializer .stringDeserializer (), "memory_size" );
370
369
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" );
373
372
374
373
}
375
374
0 commit comments