Skip to content
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

Add TsfileSize column to 'show regions' #14436

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liyuheng55555
Copy link
Collaborator

image

}
builder
.getColumnBuilder(12)
.writeBinary(new Binary(regionSizeStr, TSFileConfig.STRING_CHARSET));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whether can use BytesUtils.valueOf() ? change string to byte

@@ -161,6 +161,7 @@ private ColumnHeaderConstant() {
public static final String START_TIME = "StartTime";
public static final String ROLE = "Role";
public static final String CREATE_TIME = "CreateTime";
public static final String TSFILE_SIZE = "TsfileSize";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TsFileSize

for (Map<String, Pair<Long, Gauge>> map : unseqFileSizeMap.values()) {
for (Map.Entry<String, Pair<Long, Gauge>> regionSizeEntry : map.entrySet()) {
Integer regionId = Integer.parseInt(regionSizeEntry.getKey());
if (regionSizeMap.containsKey(regionId)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use compute API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants