Is there a specific reason why Java does not have an in-built external sort algorithm implemented ?
Asked
Active
Viewed 1,893 times
0
-
1(A short note what external sorting *is* would have been helpful, imho) – Joey Sep 18 '10 at 06:28
-
Don't you think the runtime library is big enough yet? – Thorbjørn Ravn Andersen Sep 18 '10 at 08:29
2 Answers
2
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 :

Colin Hebert
- 91,525
- 15
- 160
- 151
-
Quick question: how do you differentiate between what does into part of a framework and what goes into libraries – rakeshr Sep 18 '10 at 06:37
-
You can check this out : http://stackoverflow.com/questions/724438/what-is-the-difference-between-a-class-library-and-a-framework – Colin Hebert Sep 18 '10 at 06:51
1
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.

David Titarenco
- 32,662
- 13
- 66
- 111
-
Well, so would be file IO in general on those devices, that point isn't very convincing ;-). But agreed that it is well out of scope for a general programming framework. – Joey Sep 18 '10 at 06:29
-
-
@Chris SQL has external sort built in - which is another reason java doesn't need it. – emory Sep 18 '10 at 06:37