问题
Is there a specific reason why Java does not have an in-built external sort algorithm implemented ?
回答1:
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 :
- code.google.com - externalsortinginjava
回答2:
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.
来源:https://stackoverflow.com/questions/3740599/external-sort-java