Skip to content

Fixes from pr 2444 #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import co.elastic.clients.util.WithJsonObjectBuilderBase;
import jakarta.json.stream.JsonGenerator;
import java.lang.Integer;
import java.lang.Long;
import java.lang.String;
import java.util.Objects;
import java.util.function.Function;
Expand Down Expand Up @@ -71,7 +72,7 @@ public class QueryCacheStats implements JsonpSerializable {
@Nullable
private final String memorySize;

private final int memorySizeInBytes;
private final long memorySizeInBytes;

private final int missCount;

Expand Down Expand Up @@ -135,7 +136,7 @@ public final String memorySize() {
/**
* Required - API name: {@code memory_size_in_bytes}
*/
public final int memorySizeInBytes() {
public final long memorySizeInBytes() {
return this.memorySizeInBytes;
}

Expand Down Expand Up @@ -215,7 +216,7 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
@Nullable
private String memorySize;

private Integer memorySizeInBytes;
private Long memorySizeInBytes;

private Integer missCount;

Expand Down Expand Up @@ -264,7 +265,7 @@ public final Builder memorySize(@Nullable String value) {
/**
* Required - API name: {@code memory_size_in_bytes}
*/
public final Builder memorySizeInBytes(int value) {
public final Builder memorySizeInBytes(long value) {
this.memorySizeInBytes = value;
return this;
}
Expand Down Expand Up @@ -318,7 +319,7 @@ protected static void setupQueryCacheStatsDeserializer(ObjectDeserializer<QueryC
op.add(Builder::evictions, JsonpDeserializer.integerDeserializer(), "evictions");
op.add(Builder::hitCount, JsonpDeserializer.integerDeserializer(), "hit_count");
op.add(Builder::memorySize, JsonpDeserializer.stringDeserializer(), "memory_size");
op.add(Builder::memorySizeInBytes, JsonpDeserializer.integerDeserializer(), "memory_size_in_bytes");
op.add(Builder::memorySizeInBytes, JsonpDeserializer.longDeserializer(), "memory_size_in_bytes");
op.add(Builder::missCount, JsonpDeserializer.integerDeserializer(), "miss_count");
op.add(Builder::totalCount, JsonpDeserializer.integerDeserializer(), "total_count");

Expand Down
Loading