Fill the buffer with next values.
Fill the buffer with next values.
an iterator
the number of values read
Iterator for the buffer.
Iterator for the buffer.
to read
an 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
an iterator for the sorted file
This operation reads values from a given iterator, writes to the buffer, and sorts it.
This operation reads 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.
an iterator
a series of sorted iterators which are parts of the input iterator
Sort a given iterator.
Sort a given iterator. It consumes the given iterator and return a new one.
iterator to be sorted
sorted long iterator