关于Elasticsearch中的不可变化量

发布于 2025-01-30 05:33:45 字数 201 浏览 2 评论 0原文

我想问设计的Elasticsearch中的 ImmutableOpenmap是什么?它有什么样的实用程序?它用于 aliasmetadata和IndexMetadata 中。我个人的猜测是,它与 Anomicity 有关,但我没有从代码中获得全部理解。

I would like to ask what consideration is the immutableOpenmap in Elasticsearch designed for? What kind of utility does it have? It is used in both aliasmetadata and indexmetadata. My personal guess is that it has something to do with atomicity, but I don't get the full understanding from the code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赤濁 2025-02-06 05:33:45

来自来源

基于开放式哈希地图的不变地图实现。

不变的只是意味着一旦创建它,​​就无法修改其内容。所有将突变的方法键或值的内容都会抛出unsubportedOperationException

From the source

An immutable map implementation based on open hash map.

Immutable simply means that once you create it, you cannot modify its content anymore. All methods that would mutate the content, whether keys or values, will throw UnsupportedOperationException.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文