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

Binary allocator #339

Closed
wants to merge 2 commits into from
Closed

Conversation

OneSizeFitsQuorum
Copy link
Contributor

No description provided.

@@ -70,7 +70,7 @@ public int compareTo(Binary other) {
}

// avoid overflow
private char getChar(byte[] val, int index) {
protected char getChar(byte[] val, int index) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

看起来 tsfile 包里面没有用到这个 protect 属性的?是在 iotdb 包里面吗?我没在 MrQuansy/iotdb@f99caa1 搜到用到这个的

@@ -125,4 +149,12 @@ public void setValues(byte[] values) {
public long ramBytesUsed() {
return INSTANCE_SIZE + sizeOf(values);
}

public long ramShallowBytesUsed() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

没发现被用到

public Binary toBinary() {
return binary;
@Override
public long ramShallowBytesUsed() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

没发现被用到

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.

2 participants