Skip to content

Commit

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

* refactor: deprecate totalDataSetSize and totalDataSetSizeInBytes in StoreStats



* update CHANGELOG.md



---------


(cherry picked from commit 722f257)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 18c4f07 commit 5dc144c
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 @@ -92,6 +92,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 5dc144c

Please sign in to comment.