Skip to content

Commit

Permalink
Mark annotations for removal
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Apr 11, 2024
1 parent 694aeb5 commit 0ed2c28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ public record ElasticsearchSplit(
requireNonNull(address, "address is null");
}

@JsonIgnore
@JsonIgnore // TODO remove after https://github.com/airlift/airlift/pull/1141
@Override
public List<HostAddress> getAddresses()
{
return address.map(host -> ImmutableList.of(HostAddress.fromString(host)))
.orElseGet(ImmutableList::of);
}

@JsonIgnore
@JsonIgnore // TODO remove after https://github.com/airlift/airlift/pull/1141
@Override
public Map<String, String> getSplitInfo()
{
Expand All @@ -61,7 +61,7 @@ public Map<String, String> getSplitInfo()
.buildOrThrow();
}

@JsonIgnore
@JsonIgnore // TODO remove after https://github.com/airlift/airlift/pull/1141
@Override
public long getRetainedSizeInBytes()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ public record OpenSearchSplit(
requireNonNull(address, "address is null");
}

@JsonIgnore
@JsonIgnore // TODO remove after https://github.com/airlift/airlift/pull/1141
@Override
public List<HostAddress> getAddresses()
{
return address.map(host -> ImmutableList.of(HostAddress.fromString(host)))
.orElseGet(ImmutableList::of);
}

@JsonIgnore
@JsonIgnore // TODO remove after https://github.com/airlift/airlift/pull/1141
@Override
public Map<String, String> getSplitInfo()
{
return ImmutableMap.of("index", index, "shard", String.valueOf(shard), "address", address.orElse(""));
}

@JsonIgnore
@JsonIgnore // TODO remove after https://github.com/airlift/airlift/pull/1141
@Override
public long getRetainedSizeInBytes()
{
Expand Down

0 comments on commit 0ed2c28

Please sign in to comment.