Opttech Sort : Java Glossary
- Opttech Sort
née Opt-Tech, If you have too much data to sort to fit in RAM (Random Access Memory) at once, you will need to use an external
sort such as Opttech. It works by sorting RAM-fulls of
records, then doing an N-way merge on the sorted batches, to create fewer larger sorted batches. Eventually it
ends up with one large sorted batch. It can sort tags records even more quickly. Tag records are short records
consisting of the sorting key fields plus a reference back to the original record. Abundance uses Op-Tech sort.
It rolls itself out to disk, calls in Opt-Tech sort, giving it all of RAM, then rolls itself back in. It is
surprisingly fast. Unfortuately it does not currently support Java via the callable interface. You would have to
call it via JNI (Java Native Interface) or via exec.