关于Elasticsearch中的不可变化量
我想问设计的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自来源
不变的只是意味着一旦创建它,就无法修改其内容。所有将突变的方法键或值的内容都会抛出
unsubportedOperationException
。From the source
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
.