Fill the buffer with next long values.
Fill the buffer with next long values.
long iterator
the number of values read
Iterator for the buffer.
Iterator for the buffer.
to read
long iterator from the buffer
Iterator for a sorted file.
Iterator for a sorted file. !IMPORTANT this operation delete the input file after it reads all values.
of a sorted file
long iterator for the sorted file
This operation reads long values from a given iterator, writes to the buffer, and sorts it.
This operation reads long values from a given iterator, writes to the buffer, and sorts it. If the input exceeds the size of the buffer, this operation spill the sorted buffer out and continues until it reads all long values.
a long iterator
a series of sorted iterators which are parts of the input iterator
Sort a given long iterator.
Sort a given long iterator. It consumes the given iterator and return a new one.
long iterator to be sorted
sorted long iterator