Skip to content

Commit

Permalink
refactor: deprecate totalDataSetSize and totalDataSetSizeInBytes in S… (
Browse files Browse the repository at this point in the history
#498)

* refactor: deprecate totalDataSetSize and totalDataSetSizeInBytes in StoreStats

Signed-off-by: Dominik Szczepanczyk <[email protected]>

* update CHANGELOG.md

Signed-off-by: Dominik Szczepanczyk <[email protected]>

---------

Signed-off-by: Dominik Szczepanczyk <[email protected]>
  • Loading branch information
szczepanczykd authored May 23, 2023
1 parent 95969db commit 722f257
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Update maintainers, admins and documentation ([#248](https://github.com/opensearch-project/opensearch-java/pull/248))

### Deprecated
- Deprecate the totalDataSetSize and totalDataSetSizeInBytes fields in the StoreStats ([#498](https://github.com/opensearch-project/opensearch-java/pull/498))


### Removed
- Remove support for unsupported dynamic_templates in bulk ([#276](https://github.com/opensearch-project/opensearch-java/pull/276))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ public class StoreStats implements JsonpSerializable {

private final long reservedInBytes;

@Deprecated
@Nullable
private final String totalDataSetSize;

@Deprecated
@Nullable
private final Long totalDataSetSizeInBytes;

Expand Down Expand Up @@ -118,16 +120,22 @@ public final long reservedInBytes() {
}

/**
* @deprecated
* Not returned by server
* API name: {@code total_data_set_size}
*/
@Deprecated
@Nullable
public final String totalDataSetSize() {
return this.totalDataSetSize;
}

/**
* @deprecated
* Not returned by server
* API name: {@code total_data_set_size_in_bytes}
*/
@Deprecated
@Nullable
public final Long totalDataSetSizeInBytes() {
return this.totalDataSetSizeInBytes;
Expand Down Expand Up @@ -190,9 +198,11 @@ public static class Builder extends ObjectBuilderBase implements ObjectBuilder<S

private Long reservedInBytes;

@Deprecated
@Nullable
private String totalDataSetSize;

@Deprecated
@Nullable
private Long totalDataSetSizeInBytes;

Expand Down Expand Up @@ -229,16 +239,22 @@ public final Builder reservedInBytes(long value) {
}

/**
* @deprecated
* Not returned by server
* API name: {@code total_data_set_size}
*/
@Deprecated
public final Builder totalDataSetSize(@Nullable String value) {
this.totalDataSetSize = value;
return this;
}

/**
* @deprecated
* Not returned by server
* API name: {@code total_data_set_size_in_bytes}
*/
@Deprecated
public final Builder totalDataSetSizeInBytes(@Nullable Long value) {
this.totalDataSetSizeInBytes = value;
return this;
Expand Down

0 comments on commit 722f257

Please sign in to comment.