Java 外部排序
Java 没有实现内置的外部排序算法有什么具体原因吗?
Is there a specific reason why Java does not have an in-built external sort algorithm implemented ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为没有任何现代语言具有内置的外部排序。通常,它不属于编程语言的范围。另外,请考虑具有有限(或没有)外部存储器(仅 RAM)的嵌入式(或专用)设备。诸如外部排序之类的语言功能将毫无意义。
I don't think any modern language has external sorting built-in. Usually, it's just not part of the scope of a programming language. Also, think of embedded (or specialized) devices that have limited (or no) external memory, only RAM. Language features such as external sorting would be purposeless.
因为JDK只包含最常用的组件。
任何外部框架内容都是一样的。为什么不直接内置呢?
原因很简单,因为它不需要内置。因为它不是由同一个人开发的。
但您仍然可以使用外部框架或库来帮助您实现这一点。
资源:
Because the JDK contains only the mostly used components.
It is the same thing with any external framework content. Why isn't it directly built-in ?
Simply because it doesn't need to be built-in. And because it's not developed by the same people.
But still you can use an external framework, or a library which will help you with that.
Resources :