Skip to content

Commit

Permalink
feat(core): support GroupedKey for SegmentIdStat (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang authored May 17, 2024
1 parent 682b1cb commit 543efdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ default IdGeneratorStat stat() {
current().isExpired(),
current().isOverflow(),
current().isAvailable(),
current().group(),
idConverter().stat()
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

package me.ahoo.cosid.stat.generator;

import me.ahoo.cosid.segment.grouped.GroupedKey;
import me.ahoo.cosid.stat.Stat;

public record SegmentIdStat(String kind,
Expand All @@ -24,5 +25,6 @@ public record SegmentIdStat(String kind,
boolean isExpired,
boolean isOverflow,
boolean isAvailable,
GroupedKey groupedKey,
Stat converter) implements IdGeneratorStat {
}

0 comments on commit 543efdc

Please sign in to comment.