apache / apache/arrow-java

[Java] Remove reader index and writer index from ArrowBuf

未关闭
#272 16 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
94
派生
152
平均合并
3 天 16 小时
30 天内合并 PR
11

描述

Reader and writer index and functionality doesn't belong on a chunk of memory and is due to inheritance from ByteBuf. As part of removing ByteBuf inheritance, we should also remove reader and writer indexes from ArrowBuf functionality. It wastes heap memory for rare utility. In general, a slice can be used instead of a reader/writer index pattern.

**Reporter**: [Jacques Nadeau](https://issues.apache.org/jira/browse/ARROW-7494) / @jacques-n
#### PRs and other links:
- [GitHub Pull Request apache/arrow#6133](https://github.com/apache/arrow/pull/6133)

**Note**: *This issue was originally created as [ARROW-7494](https://issues.apache.org/jira/browse/ARROW-7494). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

贡献指南

打开贡献指南

调研方向

首先阅读 ArrowBuf 及其对 ByteBuf 的继承关系,以确定 issue 中描述的读写索引功能。在决定范围之前,跟踪相关 API 的使用情况;完成的标准是 ArrowBuf 不再暴露该索引功能,同时其余缓冲区行为仍能正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
backend
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。